Boost C++ Libraries: Ticket #5871: variant constructible/assignable from anything https://svn.boost.org/trac10/ticket/5871 <p> Boost variant has a constructor and an assignment operator that would take just anything. If it cannot be converted to any of its bounded types, it will result in an error within variant's internals. This, mixed with conversion operators, interferes with overload resolution (code that reproduces the issue attached). SFINAE'ing out the non-candidate constructors (and assignments) would fix this. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5871 Trac 1.4.3 kaballo86@… Mon, 05 Sep 2011 18:13:01 GMT attachment set https://svn.boost.org/trac10/ticket/5871 https://svn.boost.org/trac10/ticket/5871 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket raad@… Thu, 14 Apr 2016 21:14:57 GMT cc set https://svn.boost.org/trac10/ticket/5871#comment:1 https://svn.boost.org/trac10/ticket/5871#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">raad@…</span> added </li> </ul> Ticket raad@… Thu, 14 Apr 2016 21:37:10 GMT <link>https://svn.boost.org/trac10/ticket/5871#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5871#comment:2</guid> <description> <p> This problem also makes boost::variant unusable in C++17's std::tuple as implemented in MSVC 14 Update 2, affecting boost::signals2 (ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/12123" title="#12123: Bugs: Using Boost.Signals2 with Boost.Variant leads to compilation error, ... (closed: fixed)">#12123</a>). A solution has been proposed in ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11602" title="#11602: Bugs: boost.variant constructor accepts any type as parameter (closed: fixed)">#11602</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Fri, 27 May 2016 22:37:34 GMT</pubDate> <title>owner, status, milestone changed https://svn.boost.org/trac10/ticket/5871#comment:3 https://svn.boost.org/trac10/ticket/5871#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">ebf</span> to <span class="trac-author">Antony Polukhin</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.62.0</span> </li> </ul> Ticket Antony Polukhin Fri, 27 May 2016 22:38:28 GMT <link>https://svn.boost.org/trac10/ticket/5871#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5871#comment:4</guid> <description> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/variant/commit/b3650685f941a0c35cadfd878a185f274e132788"><span class="icon">​</span>b3650685 develop</a>, will be merged to the master branch as soon as the regression tests will cycle. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Antony Polukhin</dc:creator> <pubDate>Sat, 29 Oct 2016 18:07:24 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5871#comment:5 https://svn.boost.org/trac10/ticket/5871#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket