[Boost-bugs] [Boost C++ Libraries] #13079: boost::variant(const char*->bool)

Subject: [Boost-bugs] [Boost C++ Libraries] #13079: boost::variant(const char*->bool)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-17 16:55:37


#13079: boost::variant(const char*->bool)
--------------------------+---------------------
 Reporter: iewj@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.64.0 | Component: None
  Version: Boost 1.64.0 | Severity: Problem
 Keywords: |
--------------------------+---------------------
 {{{
         boost::variant<int, long, double, bool, string> v1("11");
         cout << v1.type().name()<<endl;//bool******************why?
         boost::variant<int, long, double, bool, string> v2(string("11"));
         cout << v2.type().name() << endl;//class
 std::basic_string<char,struct std::char_traits<char>,class
 std::allocator<char> >
         return 0;
 }}}

--
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13079>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-06-17 17:00:12 UTC