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
9 #include "boost/exception/info.hpp"
16 typedef error_info<struct errinfo_errno_,int> errinfo_errno;
19 //if( c_function(....)!=0 )
20 // BOOST_THROW_EXCEPTION(
22 // errinfo_errno(errno) <<
23 // errinfo_api_function("c_function") );
26 to_string( errinfo_errno const & e )
28 std::ostringstream tmp;
30 tmp << v << ", \"" << strerror(v) << "\"";