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