#include <boost/exception/errinfo_at_line.hpp>
#include <boost/exception/error_info.hpp> namespace boost { typedef error_info<struct errinfo_at_line_,int> errinfo_at_line; }
This type is designed to be used as a standard error_info instance for transporting a relevant text file line number, for example in parse error exceptions deriving from boost::exception.