Boost logo

Boost :

Subject: Re: [boost] [concept] typenames vs. typedefs
From: Larisse Voufo (lvoufo_at_[hidden])
Date: 2012-05-06 12:47:17


On Fri, May 4, 2012 at 11:06 PM, lcaminiti <lorcaminiti_at_[hidden]> wrote:

>
> lcaminiti wrote
> >
> > What's the difference between typename new_type = old_type and typedef
> > old_type new_type? Why are they both allowed?
> >
>
> Got it: typename applies to concepts, typedef to concept_maps.
>

This may be coming a bit late, but the essential idea is that:
typedef declarations assign values to associated types specified via
template type parameter declarations.

Hope this helps.
Thanks,
-- Larisse.

>
> Thanks.
> --Lorenzo
>
>
> --
> View this message in context:
> http://boost.2283326.n4.nabble.com/boost-concept-typenames-vs-typedefs-tp4608969p4610433.html
> Sent from the Boost - Dev mailing list archive at Nabble.com.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk