Boost logo

Boost Users :

Subject: Re: [Boost-users] Regression in Boost.Variant with gcc6.3 in C++03 mode
From: dariomt_at_[hidden]
Date: 2017-06-27 16:53:13


2017-06-27 17:46 GMT+02:00 d25fe0be_at_[hidden] <d25fe0be_at_[hidden]>:
>
> So I suspect this is a bug in 'type_traits' library, but I'm not sure.
> Hopefully somebody else can confirm. (I'm sorry but I don't know to whom
> should I CC this post.)
>
> I don't know why clang accepts your code though. Perhaps
> `boost::is_convertible` is conditionally compiled to some different
> implementations in Clang.
>

Thanks for the analysis.
My guess is that clang uses a different implementation of is_convertible.
Also, I guess this works in C++14 because std::is_convertible is used
instead?

Regards



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net