-----Original Message----- From: Boost [mailto:boost-bounces@lists.boost.org] On Behalf Of Marcel Raad Sent: 11 June 2016 16:27 To: boost@lists.boost.org Subject: Re: [boost] enabling constexpr with Visual studio 2015 Update 3 (RC)
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.
#define _HAS_AUTO_PTR_ETC 1 // http://lists.boost.org/boost-users/2015/09/84966.php seems to get rid of my compile failure. Thanks Paul
-- View this message in context: http://boost.2283326.n4.nabble.com/enabling-constexpr-with-Visual-studio-201... RC-tp4686973p4686975.html Sent from the Boost - Dev mailing list archive at Nabble.com.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost