|
Boost : |
From: Synge Todo (wistaria_at_[hidden])
Date: 2003-04-11 03:47:50
Dear Boosters,
I'm sending a tiny patch to boost/lexical_cast.hpp, which is required
to compile with -DBOOST_NO_EXCEPTIONS. Could someone apply this patch?
Best regards,
Synge Todo
wistaria_at_[hidden]
diff -crN boost_1_30_0.orig/boost/lexical_cast.hpp boost_1_30_0/boost/lexical_cast.hpp
*** boost_1_30_0.orig/boost/lexical_cast.hpp Wed Mar 19 21:14:32 2003
--- boost_1_30_0/boost/lexical_cast.hpp Wed Apr 9 19:23:05 2003
***************
*** 17,22 ****
--- 17,23 ----
#include <string>
#include <typeinfo>
#include <boost/config.hpp>
+ #include <boost/throw_exception.hpp>
#include <boost/limits.hpp>
#include <boost/type_traits/is_pointer.hpp>
***************
*** 190,196 ****
Target result;
if(!(interpreter << arg && interpreter >> result))
! throw detail::no_lexical_conversion<Target, Source>();
return result;
}
}
--- 191,197 ----
Target result;
if(!(interpreter << arg && interpreter >> result))
! throw_exception(detail::no_lexical_conversion<Target, Source>());
return result;
}
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk