Boost Exception

errinfo_file_handle

#include <boost/exception/errinfo_file_handle.hpp>

#include <boost/exception/error_info.hpp>

namespace
boost
    {
    template <class> class weak_ptr;
    typedef error_info<struct errinfo_file_handle_,weak_ptr<FILE> > errinfo_file_handle;
    }

This type is designed to be used as a standard error_info instance for transporting a relevant FILE pointer managed by a boost::shared_ptr<FILE> in exceptions deriving from boost::exception.