Boost logo

Boost :

Subject: Re: [boost] enabling constexpr with Visual studio 2015 Update 3 (RC)
From: Marcel Raad (raad_at_[hidden])
Date: 2016-06-11 11:27:24


pabristow wrote
> (aside I also tried /std:C++latest but that works for some tasks but
> failed to compile with odd-looking errors in converter.hpp
>
> Error C2518 keyword 'typename' illegal in base class list; ignored
> \modular-boost\boost\numeric\conversion\detail\converter.hpp 453
>
> // Trivial Converter : used when (cv-unqualified) T == (cv-unqualified) S
> //
> template
> <class Traits>
> struct trivial_converter_impl : public std::unary_function<
> BOOST_DEDUCED_TYPENAME Traits::argument_type
>
> ,BOOST_DEDUCED_TYPENAME Traits::result_type
> >
> ,public dummy_range_checker
> <Traits>
> {...}
>
> So I stopped trying that /std:c++latest option. What else should it do?)

To use /std:C++latest, you have to add _HAS_AUTO_PTR_ETC=1 to the
preprocessor definitions. Otherwise, there is no std::unary_function.

--
View this message in context: http://boost.2283326.n4.nabble.com/enabling-constexpr-with-Visual-studio-2015-Update-3-RC-tp4686973p4686975.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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