]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/exception/test/helper1.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / exception / test / helper1.cpp
1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
2
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/exception/exception.hpp>
7 #include <stdexcept>
8 #include <string>
9
10 namespace
11 boost
12 {
13 namespace
14 exception_test
15 {
16 void
17 throw_length_error()
18 {
19 throw enable_error_info( std::length_error("exception test length error") );
20 }
21 }
22 }