Added BOOST_UNREACHABLE_RETURN workaround macro.

[SVN r16574]
This commit is contained in:
John Maddock committed 2002-12-09 12:21:54 +00:00
1 parent 555d41525d
commit 3596eec09a
7 files changed
+111 -5

No files matched your search

+11
View File
@@ -309,6 +309,17 @@ namespace std {
# define BOOST_NESTED_TEMPLATE
#endif
// BOOST_UNREACHABLE_RETURN(x) workaround -------------------------------------//
// Normally evaluates to nothing, unless BOOST_NO_UNREACHABLE_RETURN_DETECTION
// is defined, in which case it evaluates to return x; Use when you have a return
// statement that can never be reached.
#ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION
# define BOOST_UNREACHABLE_RETURN(x) return x;
#else
# define BOOST_UNREACHABLE_RETURN(x)
#endif
// BOOST_DEDUCED_TYPENAME workaround ------------------------------------------//
//
// Some compilers don't support the use of `typename' for dependent