source: NonGTP/Boost/boost/assign/assignment_exception.hpp @ 857

Revision 857, 997 bytes checked in by igarcia, 19 years ago (diff)
Line 
1// Boost.Assign library
2//
3//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
4//  distribution is subject to the Boost Software License, Version
5//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
6//  http://www.boost.org/LICENSE_1_0.txt)
7//
8// For more information, see http://www.boost.org/libs/assign/
9// 
10 
11
12#ifndef BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP
13#define BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP
14
15#if defined(_MSC_VER) && (_MSC_VER >= 1020)
16# pragma once
17#endif
18
19#include <exception>
20
21namespace boost
22{   
23    namespace assign
24    {
25        class assignment_exception : public std::exception
26        {
27        public:
28            assignment_exception( const char* what )
29            : what_( what )
30            { }
31       
32            virtual const char* what() const throw()
33            {
34                return what_;
35            }
36       
37        private:
38                const char* what_;
39        };
40    }
41}
42
43#endif
Note: See TracBrowser for help on using the repository browser.