Boost C++ Libraries: Ticket #10218: variant::apply_visitor does not work with move-only return types https://svn.boost.org/trac10/ticket/10218 <p> Applying a visitor that returns a move-only type (such as std::unique_ptr&lt;&gt;) fails to compile. </p> <p> Tested with clang 3.4 and gcc 4.8 on OS X. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10218 Trac 1.4.3 Christopher Moore <crmoore@…> Fri, 18 Jul 2014 19:23:52 GMT attachment set https://svn.boost.org/trac10/ticket/10218 https://svn.boost.org/trac10/ticket/10218 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> <p> Minimal example of the issue </p> Ticket Antony Polukhin Tue, 02 Dec 2014 16:23:46 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10218#comment:1 https://svn.boost.org/trac10/ticket/10218#comment:1 <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">fixed</span> </li> </ul> <p> This issue <a class="ext-link" href="https://github.com/boostorg/variant/commit/0367512bc796f6e379e42c6945adf828aa4bcc5f"><span class="icon">​</span>has been fixed</a> in Boost 1.56 </p> Ticket