epoc32/include/stdapis/boost/ptr_container/detail/throw_exception.hpp
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/stdapis/boost/throw_exception.hpp@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED
     2 #define BOOST_THROW_EXCEPTION_HPP_INCLUDED
     3 
     4 // MS compatible compilers support #pragma once
     5 
     6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
     7 # pragma once
     8 #endif
     9 
    10 //
    11 //  boost/throw_exception.hpp
    12 //
    13 //  Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
    14 //
    15 // Distributed under the Boost Software License, Version 1.0. (See
    16 // accompanying file LICENSE_1_0.txt or copy at
    17 // http://www.boost.org/LICENSE_1_0.txt)
    18 //
    19 //  http://www.boost.org/libs/utility/throw_exception.html
    20 //
    21 
    22 #include <boost/config.hpp>
    23 
    24 #ifdef BOOST_NO_EXCEPTIONS
    25 # include <exception>
    26 #endif
    27 
    28 namespace boost
    29 {
    30 
    31 #ifdef BOOST_NO_EXCEPTIONS
    32 
    33 void throw_exception(std::exception const & e); // user defined
    34 
    35 #else
    36 
    37 template<class E> inline void throw_exception(E const & e)
    38 {
    39     throw e;
    40 }
    41 
    42 #endif
    43 
    44 } // namespace boost
    45 
    46 #endif // #ifndef BOOST_THROW_EXCEPTION_HPP_INCLUDED