Boost logo

Boost :

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


Le 26/04/2018 à 12:13, Peter Dimov via Boost a écrit :
> Raffi Enficiaud wrote:
>> Hi all,
>>
>> I was wondering if there is any macro in Boost.Config for advertising
>> the defect of the "using" support from the compiler.
>>
>> I was reported this:
>>
>> https://github.com/boostorg/test/pull/140
>>
>> and at the time I wrote the thing, I thought that those guards would
>> have been enough:
>>
>> https://github.com/boostorg/test/blob/35c9acf5bd38d625ebd45cf940c5b9a19aa2295b/include/boost/test/tree/test_case_template.hpp#L145-L147
>>
>>
>> (auto, tuple and variadic template sounds to me more difficult to
>> support than "using" template alias).
>>
>> 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?

Thanks,
Raffi


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