os/ossrv/ossrv_pub/boost_apis/boost/assign/assignment_exception.hpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Boost.Assign library
sl@0
     2
//
sl@0
     3
//  Copyright Thorsten Ottosen 2003-2004. Use, modification and
sl@0
     4
//  distribution is subject to the Boost Software License, Version
sl@0
     5
//  1.0. (See accompanying file LICENSE_1_0.txt or copy at
sl@0
     6
//  http://www.boost.org/LICENSE_1_0.txt)
sl@0
     7
//
sl@0
     8
// For more information, see http://www.boost.org/libs/assign/
sl@0
     9
//  
sl@0
    10
 
sl@0
    11
sl@0
    12
#ifndef BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP
sl@0
    13
#define BOOST_ASSIGN_ASSIGNMENT_EXCEPTION_HPP
sl@0
    14
sl@0
    15
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
    16
# pragma once
sl@0
    17
#endif
sl@0
    18
sl@0
    19
#include <exception>
sl@0
    20
sl@0
    21
namespace boost
sl@0
    22
{    
sl@0
    23
    namespace assign
sl@0
    24
    {
sl@0
    25
        class assignment_exception : public std::exception
sl@0
    26
        {
sl@0
    27
        public:
sl@0
    28
            assignment_exception( const char* what ) 
sl@0
    29
            : what_( what )
sl@0
    30
            { }
sl@0
    31
        
sl@0
    32
            virtual const char* what() const throw()
sl@0
    33
            {
sl@0
    34
                return what_;
sl@0
    35
            }
sl@0
    36
        
sl@0
    37
        private:
sl@0
    38
                const char* what_;
sl@0
    39
        };
sl@0
    40
    }
sl@0
    41
}
sl@0
    42
sl@0
    43
#endif