Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/exception/current_exception_cast.hpp @ 125:34e428693f5d vext
Vext -> Repoint
| author | Chris Cannam |
|---|---|
| date | Thu, 14 Jun 2018 11:15:39 +0100 |
| parents | 2665513ce2d3 |
| children |
| rev | line source |
|---|---|
| Chris@16 | 1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. |
| Chris@16 | 2 |
| Chris@16 | 3 //Distributed under the Boost Software License, Version 1.0. (See accompanying |
| Chris@16 | 4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| Chris@16 | 5 |
| Chris@16 | 6 #ifndef UUID_7E83C166200811DE885E826156D89593 |
| Chris@16 | 7 #define UUID_7E83C166200811DE885E826156D89593 |
| Chris@16 | 8 #if (__GNUC__*100+__GNUC_MINOR__>301) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
| Chris@16 | 9 #pragma GCC system_header |
| Chris@16 | 10 #endif |
| Chris@16 | 11 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
| Chris@16 | 12 #pragma warning(push,1) |
| Chris@16 | 13 #endif |
| Chris@16 | 14 |
| Chris@16 | 15 namespace |
| Chris@16 | 16 boost |
| Chris@16 | 17 { |
| Chris@16 | 18 template <class E> |
| Chris@16 | 19 inline |
| Chris@16 | 20 E * |
| Chris@16 | 21 current_exception_cast() |
| Chris@16 | 22 { |
| Chris@16 | 23 try |
| Chris@16 | 24 { |
| Chris@16 | 25 throw; |
| Chris@16 | 26 } |
| Chris@16 | 27 catch( |
| Chris@16 | 28 E & e ) |
| Chris@16 | 29 { |
| Chris@16 | 30 return &e; |
| Chris@16 | 31 } |
| Chris@16 | 32 catch( |
| Chris@16 | 33 ...) |
| Chris@16 | 34 { |
| Chris@16 | 35 return 0; |
| Chris@16 | 36 } |
| Chris@16 | 37 } |
| Chris@16 | 38 } |
| Chris@16 | 39 |
| Chris@16 | 40 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS) |
| Chris@16 | 41 #pragma warning(pop) |
| Chris@16 | 42 #endif |
| Chris@16 | 43 #endif |
