compile-time cost of alias templates

Jonathan Wakely jwakely.gcc@gmail.com
Sun Dec 18 17:46:00 GMT 2011


On 18 December 2011 17:38, Jason Merrill wrote:
>
> Instantiating an alias is simpler, aliases are basically transparent.

That's good to know, as they also result in shorter, simpler code in many cases.

> However, this change would mean that any mangling exposure of
> __is_socketlike would change.  But that may not be an issue since it's an
> internal type.

It should never be emitted in objects, only the value of its static
const bool value member affects mangling of anything instantiated, and
that value won't change.

Thanks for the quick answer.



More information about the Libstdc++ mailing list