System: provide optional throws function rather than throws object

[SVN r50705]
This commit is contained in:
Beman Dawes
2009-01-21 18:01:14 +00:00
parent a6728e5fb9
commit 5bc362e4f3
2 changed files with 12 additions and 0 deletions

View File

@@ -411,11 +411,13 @@ namespace boost
namespace system
{
# ifndef BOOST_SYSTEM_THROWS_FUNCTION
BOOST_SYSTEM_DECL error_code throws; // "throw on error" special error_code;
// note that it doesn't matter if this
// isn't initialized before use since
// the only use is to take its
// address for comparison purposes
# endif
BOOST_SYSTEM_DECL const error_category & get_system_category()
{