fix doc example typo
[boost.git] / boost / exception / current_exception_cast.hpp
blob228b6ea10ec45f2c0d61e401cacdb7f7e2ed66ce
1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef UUID_7E83C166200811DE885E826156D89593
7 #define UUID_7E83C166200811DE885E826156D89593
9 namespace
10 boost
12 template <class E>
13 inline
14 E *
15 current_exception_cast()
17 try
19 throw;
21 catch(
22 E & e )
24 return &e;
26 catch(
27 ...)
29 return 0;
34 #endif