Boost C++ Libraries: Ticket #11479: BOOST_DEFAULTED_FUNCTION does not work on Visual Studio 2013 https://svn.boost.org/trac10/ticket/11479 <p> The following use case </p> <p> struct Foo { </p> <blockquote> <p> Foo(const Foo&amp; other) : uptr(new int(*other.uptr)) {} BOOST_DEFAULTED_FUNCTION(Foo(Foo&amp;&amp; other), : uptr(std::move(other.uptr)){} ); std::unique_ptr&lt;int&gt; uptr; </p> </blockquote> <p> }; </p> <p> when compiled with Visual Studio 2013, causes the following error: </p> <p> error C2610: 'Foo::Foo(Foo &amp;&amp;)' : is not a special member function which can be defaulted </p> <p> VS 2012 picks up the fallback, so it works. </p> <p> It could be because of the following documented defect: <a class="ext-link" href="https://msdn.microsoft.com/en-us/library/hh567368.aspx#rvref"><span class="icon">​</span>https://msdn.microsoft.com/en-us/library/hh567368.aspx#rvref</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11479 Trac 1.4.3 viboes Thu, 20 Aug 2015 23:03:29 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11479#comment:1 https://svn.boost.org/trac10/ticket/11479#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">config</span> </li> </ul> Ticket John Maddock Tue, 31 Jul 2018 18:38:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11479#comment:2 https://svn.boost.org/trac10/ticket/11479#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> I think this duplicates <a class="ext-link" href="https://svn.boost.org/trac10/ticket/10215"><span class="icon">​</span>https://svn.boost.org/trac10/ticket/10215</a> </p> Ticket