#include <boost/exception/errinfo_api_function.hpp>
#include <boost/exception/error_info.hpp> namespace boost { typedef error_info<struct errinfo_api_function_,int> errinfo_api_function; }
This type is designed to be used as a standard error_info instance for transporting the name of a relevant API function (which does not use exceptions to report errors) in exceptions deriving from boost::exception.