Boost logo

Boost :

Subject: Re: [boost] [config] Macro for "using" type alias defects
From: Raffi Enficiaud (raffi.enficiaud_at_[hidden])
Date: 2018-04-26 22:12:14


Le 26/04/2018 à 19:29, Peter Dimov via Boost a écrit :
> Raffi Enficiaud wrote:
>> >> Would it make sense to have BOOST_NO_CXX11_TYPE_ALIAS?
>> >
>> > As already stated in the issue, the macro is >
>> BOOST_NO_CXX11_TEMPLATE_ALIASES.
>>
>> Good to know, but I thought this macro was for the second form of this
>> (with templates):
>>
>> http://en.cppreference.com/w/cpp/language/type_alias
>>
>> You are stating that this is for the first form as well, which is
>> called, to my understanding, "type alias". Is that correct?
>
> As far as I know, no compiler implements the non-template `using`
> separately from the template one, so for practical purposes, these are
> the same feature.

This was what I was indeed thinking when I guarded my code with auto,
tuple and variadic templates availability (that "using" would just be
there)... Let's try with what you are suggesting then.

Raffi


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