[Boost-bugs] [Boost C++ Libraries] #7615: use property_tree::ptree.get<char>() for MSVC

Subject: [Boost-bugs] [Boost C++ Libraries] #7615: use property_tree::ptree.get<char>() for MSVC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-31 09:58:33


#7615: use property_tree::ptree.get<char>() for MSVC
------------------------------------------------+---------------------------
 Reporter: shirshov evgeny <381677383@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: property_three |
------------------------------------------------+---------------------------
 error : not exception "ptree_bad_data"
 compiler MSVC 10.
 {{{
     ptree pt;
     pt.put<int>("a",1000000);
     try
     {
         pt.get<unsigned char>("a");
         // !!! bug !!!
         BOOST_ERROR("No required exception thrown");
     }
     catch (boost::property_tree::ptree_bad_data &) { }
     catch (...)
     {
         BOOST_ERROR("Wrong exception type thrown");
     }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7615>
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-02-16 18:50:11 UTC