Boost C++ Libraries: Ticket #13079: boost::variant(const char*->bool) https://svn.boost.org/trac10/ticket/13079 <pre class="wiki"> boost::variant&lt;int, long, double, bool, string&gt; v1("11"); cout &lt;&lt; v1.type().name()&lt;&lt;endl;//bool******************why? boost::variant&lt;int, long, double, bool, string&gt; v2(string("11")); cout &lt;&lt; v2.type().name() &lt;&lt; endl;//class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; return 0; </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13079 Trac 1.4.3 John Maddock Sun, 30 Jul 2017 18:23:06 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13079#comment:1 https://svn.boost.org/trac10/ticket/13079#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">ebf</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">variant</span> </li> </ul> Ticket Antony Polukhin Mon, 20 Sep 2021 17:33:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13079#comment:2 https://svn.boost.org/trac10/ticket/13079#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> Moved the issue to github <a class="ext-link" href="https://github.com/boostorg/variant/issues/94"><span class="icon">​</span>https://github.com/boostorg/variant/issues/94</a> </p> Ticket