Back to Arangodb

Boost Exception

3rdParty/boost/1.78.0/libs/exception/doc/copy_exception.html

3.12.9.1980 B
Original Source

Boost Exception

copy_exception

#include <boost/exception_ptr.hpp>

namespace
boost
    { template \<class T\> [exception\_ptr](exception_ptr.html) copy\_exception( T const & e );}

Effects:

As if

try
    {
    throw[enable\_current\_exception](enable_current_exception.html)(e);
    }
catch(...)
    {
    return[current\_exception](current_exception.html)();
    }

See also: Boost Exception | boost/exception_ptr.hpp | current_exception

Copyright (c) 2006-2009 by Emil Dotchevski and Reverge Studios, Inc.
Distributed under the Boost Software License, Version 1.0.