Boost logo

Boost Users :

Subject: Re: [Boost-users] [type_traits] is_convertible bug with gcc 4.3.0
From: John Maddock (john_at_[hidden])
Date: 2008-11-09 04:50:34

Terry G wrote:
>> I'm playing with move semantics (still/again).
>> The following program compiles and runs fine with msvc8 but does not
>> compile with gcc 4.3.0 when
>> Should it?
>> The problem has something to do with U's copy constructor being
>> private. I've inluded the compiler output below too.

Without some compiler supplied magic, is_convertible will fail to compile if
the conversion involves a protected or private constructor. Sorry, but it's
a limitation of the implementation/language.


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