sl@0: // Boost.Assign library sl@0: // sl@0: // Copyright Thorsten Ottosen 2003-2004. Use, modification and sl@0: // distribution is subject to the Boost Software License, Version sl@0: // 1.0. (See accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: // sl@0: // For more information, see http://www.boost.org/libs/assign/ sl@0: // sl@0: sl@0: sl@0: #ifndef BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP sl@0: #define BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP sl@0: sl@0: #if defined(_MSC_VER) && (_MSC_VER >= 1020) sl@0: # pragma once sl@0: #endif sl@0: sl@0: #include sl@0: sl@0: namespace boost sl@0: { sl@0: namespace assign sl@0: { sl@0: class assignment_exception : public std::exception sl@0: { sl@0: public: sl@0: assignment_exception( const char* what ) sl@0: : what_( what ) sl@0: { } sl@0: sl@0: virtual const char* what() const throw() sl@0: { sl@0: return what_; sl@0: } sl@0: sl@0: private: sl@0: const char* what_; sl@0: }; sl@0: } sl@0: } sl@0: sl@0: #endif