diff options
Diffstat (limited to 'src/boost/libs/exception/test/helper1.cpp')
-rw-r--r-- | src/boost/libs/exception/test/helper1.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/boost/libs/exception/test/helper1.cpp b/src/boost/libs/exception/test/helper1.cpp new file mode 100644 index 00000000..f25f49f8 --- /dev/null +++ b/src/boost/libs/exception/test/helper1.cpp @@ -0,0 +1,22 @@ +//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. + +//Distributed under the Boost Software License, Version 1.0. (See accompanying +//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#include <boost/exception/exception.hpp> +#include <stdexcept> +#include <string> + +namespace +boost + { + namespace + exception_test + { + void + throw_length_error() + { + throw enable_error_info( std::length_error("exception test length error") ); + } + } + } |