Boost logo

Boost Users :

Subject: Re: [Boost-users] Regression in Boost.Variant with gcc6.3 in C++03 mode
From: d25fe0be_at_[hidden]
Date: 2017-06-27 17:30:54

> On 28 Jun 2017, at 01:27, d25fe0be_at_[hidden] wrote:
> And I believe this finding gives us an easier workaround: Just defining our own `BOOST_IS_CONVERTIBLE` before including `boost/variant.hpp`, and the compilation error should disappear.
> ```
> #include <type_traits>
> #define BOOST_IS_CONVERTIBLE(T,U) std::is_convertible<T, U>::value
> #include <boost/variant.hpp>
> [...]
> ```

Oh sorry I forgot you're using C++03.

Maybe you could write your own `is_convertible` in C++03 and redirect boost's to there.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at