2 // Boost.Pointer Container
4 // Copyright Thorsten Ottosen 2003-2005. Use, modification and
5 // distribution is subject to the Boost Software License, Version
6 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // For more information, see http://www.boost.org/libs/ptr_container/
12 #ifndef BOOST_PTR_CONTAINER_EXCEPTION_HPP
13 #define BOOST_PTR_CONTAINER_EXCEPTION_HPP
15 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
23 class bad_ptr_container_operation
: public std::exception
27 bad_ptr_container_operation( const char* what
) : what_( what
)
30 virtual const char* what() const throw()
38 class bad_index
: public bad_ptr_container_operation
41 bad_index( const char* what
) : bad_ptr_container_operation( what
)
47 class bad_pointer
: public bad_ptr_container_operation
50 bad_pointer() : bad_ptr_container_operation( "Null pointer not allowed in a pointer container!" )
53 bad_pointer( const char* text
) : bad_ptr_container_operation( text
)