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#include <boost/config.hpp>
16#include <exception>
17
18#if defined(BOOST_HAS_PRAGMA_ONCE)
19# pragma once
20#endif
21
22namespace boost
23{
24 namespace assign
25 {
26 class assignment_exception : public std::exception
27 {
28 public:
29 assignment_exception( const char* _what )
30 : what_( _what )
31 { }
32
33 virtual const char* what() const BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE
34 {
35 return what_;
36 }
37
38 private:
39 const char* what_;
40 };
41 }
42}
43
44#endif
45

source code of boost/libs/assign/include/boost/assign/assignment_exception.hpp