summaryrefslogtreecommitdiff
path: root/boost/token_functions.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/token_functions.hpp')
-rw-r--r--boost/token_functions.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/boost/token_functions.hpp b/boost/token_functions.hpp
index 33b37cd84f..be245a047f 100644
--- a/boost/token_functions.hpp
+++ b/boost/token_functions.hpp
@@ -40,6 +40,7 @@
#include <boost/assert.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/mpl/if.hpp>
+#include <boost/throw_exception.hpp>
#if !defined(BOOST_NO_CWCTYPE)
#include <cwctype>
#endif
@@ -125,7 +126,7 @@ namespace boost{
template <typename iterator, typename Token>
void do_escape(iterator& next,iterator end,Token& tok) {
if (++next == end)
- throw escaped_list_error(std::string("cannot end with escape"));
+ BOOST_THROW_EXCEPTION(escaped_list_error(std::string("cannot end with escape")));
if (Traits::eq(*next,'n')) {
tok+='\n';
return;
@@ -143,7 +144,7 @@ namespace boost{
return;
}
else
- throw escaped_list_error(std::string("unknown escape sequence"));
+ BOOST_THROW_EXCEPTION(escaped_list_error(std::string("unknown escape sequence")));
}
public: