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_F0EE17BE6C1211DE87FF459155D89593
7 #define UUID_F0EE17BE6C1211DE87FF459155D89593
8 #if defined(__GNUC__) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
9 #pragma GCC system_header
11 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)
12 #pragma warning(push,1)
15 #include "boost/exception/info.hpp"
22 typedef error_info<struct errinfo_errno_,int> errinfo_errno;
25 //if( c_function(....)!=0 )
26 // BOOST_THROW_EXCEPTION(
28 // errinfo_errno(errno) <<
29 // errinfo_api_function("c_function") );
32 to_string( errinfo_errno const & e )
34 std::ostringstream tmp;
36 tmp << v << ", \"" << strerror(v) << "\"";
41 #if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)