Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct callback_error_handler

boost::parser::callback_error_handler

Synopsis

// In header: <boost/parser/error_handling.hpp>


struct callback_error_handler {
  // types
  typedef  ;

  // public member functions
  ();
  (,  = );
  (, ,  = );
  (, ,  = );
  template<typename Iter, typename Sentinel> 
     
    (, , parse_error< ) ;
  template<typename Context, typename Iter> 
     (, , , ) ;
  template<typename Context> 
     (, , ) ;

  // public data members
   error_;
   warning_;
   filename_;
};

Description

An error handler that allows users to supply callbacks to handle the reporting of warnings and errors. The reporting of errors and/or warnings can be suppressed by supplying one or both default-constructed callbacks.

callback_error_handler public member functions

  1. ();
  2. ( error,  warning = );
  3. ( filename,  error, 
                            warning = );
  4. ( filename,  error, 
                            warning = );

    This overload is Windows-only.

  5. template<typename Iter, typename Sentinel> 
       
      ( first,  last, parse_error<  e) ;
  6. template<typename Context, typename Iter> 
       ( kind,  message, 
                     context,  it) ;
  7. template<typename Context> 
       ( kind,  message, 
                     context) ;

PrevUpHomeNext