Boost logo

Boost :

Subject: Re: [boost] enabling constexpr with Visual studio 2015 Update 3 (RC)
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2016-06-13 09:54:30


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Marcel Raad
> Sent: 11 June 2016 16:27
> To: boost_at_[hidden]
> 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-2015-Update-3-
> 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


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