]> git.lyx.org Git - lyx.git/blobdiff - 3rdparty/boost/boost/lexical_cast.hpp
Update boost to version 1.62.
[lyx.git] / 3rdparty / boost / boost / lexical_cast.hpp
index a880c0cd9ccbbfc978e6ea2c9c892677c7d6f26a..3dc21f88a4373d1ba0465ab4b27ed7d8f15b4477 100644 (file)
 #include <boost/range/iterator_range_core.hpp>
 #include <boost/lexical_cast/bad_lexical_cast.hpp>
 #include <boost/lexical_cast/try_lexical_convert.hpp>
-#include <boost/utility/value_init.hpp>
 
 namespace boost 
 {
     template <typename Target, typename Source>
     inline Target lexical_cast(const Source &arg)
     {
-        boost::value_initialized<Target> result;
+        Target result = Target();
 
-        if (!boost::conversion::detail::try_lexical_convert(arg, get(result))) {
+        if (!boost::conversion::detail::try_lexical_convert(arg, result)) {
             boost::conversion::detail::throw_bad_cast<Source, Target>();
         }
 
-        return get(result);
+        return result;
     }
 
     template <typename Target>