Boost Exception

errinfo_file_name

#include <boost/exception/errinfo_file_name.hpp>

#include <boost/exception/error_info.hpp>
#include <string>

namespace
boost
    {
    typedef error_info<struct errinfo_file_name_,std::string> errinfo_file_name;
    }

This type is designed to be used as a standard error_info instance for transporting a relevant file name in exceptions deriving from boost::exception.