template syntax

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Jan 31 17:31:02 UTC 2019


On Thu, Jan 31, 2019 at 01:13:29PM +0000, bauss via Digitalmars-d wrote:
> On Thursday, 31 January 2019 at 01:30:36 UTC, Arun Chandrasekaran wrote:
> > On Wed, Jan 30, 2019 at 5:15 PM Walter Bright via Digitalmars-d
> > <digitalmars-d at puremagic.com> wrote:
> > > 
> > > On 1/30/2019 4:08 PM, Andrei Alexandrescu wrote:
> > > > Don't forget "typename" and "::template", beautifully combined
> > > > here:
> > > >
> > > > typedef typename Allocator::template rebind<Mapped>::other
> > > > mapped_type_allocator;
> > > 
> > > It is indeed beautiful. Want to write a DIP to switch to < > ?
> > 
> > Bauss will win another worst code contest if this DIP gets approved
> > ;-)
> 
> I can't wait! ;)

One of these days I'm gonna hafta pull an IODCC entry... Like the
monstrosity I recently posted in bauss's thread. :-D


T

-- 
Give a man a fish, and he eats once. Teach a man to fish, and he will sit forever.


More information about the Digitalmars-d mailing list