On Aug 22, 2013, at 2:07 PM, Mani <[email protected]> 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:[email protected]> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
_______________________________________________ cfe-users mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users
