[cfe-users] is_move_constructible is broken?

Marshall Clow mclow.lists at gmail.com
Thu Aug 22 14:37:26 PDT 2013


On Aug 22, 2013, at 2:07 PM, Mani <monamimani at gmail.com> wrote:

> Hi,
> 
> This might not be the right way to communicate this, but I think there's been a regression in the top of tree. In the following the static_assert for Foo work fine but I get a compile error for the static_assert of the class Boo.
> 
> class Foo
> {
> };
> static_assert(std::is_move_constructible<Foo>::value, "Type is not move constructible.");
> 
> class Boo
> {
>    Boo(Boo&&) = default;
> };
> static_assert(std::is_move_constructible<Boo>::value, "Type is not move constructible."); // Compile error: static_assert failed "Type is not move constructible."

I think that Boo's move constructor needs to be public.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20130822/fa406ff6/attachment.html>


More information about the cfe-users mailing list