
27 Jun
2017
27 Jun
'17
5:30 p.m.
On 28 Jun 2017, at 01:27, d25fe0be@outlook.com 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.