Boost C++ Libraries: Ticket #9655: Error for visitors returning a moveable-but-not-copyable object https://svn.boost.org/trac10/ticket/9655 <p> I noticed that there is an error in boost::variant if one uses the visitor pattern and if the return type of the visitor does not posess a copy constructor but instead a move constructor. I've attached a small sample script that shows this behaviour. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9655 Trac 1.4.3 Raffael Casagrande <raffael@…> Tue, 11 Feb 2014 09:09:54 GMT attachment set https://svn.boost.org/trac10/ticket/9655 https://svn.boost.org/trac10/ticket/9655 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> <p> A small sample script that doesn't compile with gcc 4.8.2 and clang 3.4 </p> Ticket anonymous Tue, 01 Apr 2014 14:29:47 GMT summary changed https://svn.boost.org/trac10/ticket/9655#comment:1 https://svn.boost.org/trac10/ticket/9655#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Error for visitors returning a rvalue</span> → <span class="trac-field-new">Error for visitors returning a moveable-but-not-copyable object</span> </li> </ul> Ticket Antony Polukhin Tue, 02 Dec 2014 16:56:32 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/9655#comment:2 https://svn.boost.org/trac10/ticket/9655#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">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