Is there a way to pretty-print output for templates errors

Stephen Torri storri@torri.org
Wed Mar 21 15:06:00 GMT 2007


I have a hard time reading the template errors I get from GCC. I was
wondering if there is a flag for the compiler so that instead of getting
output like below. I know I failed to present this snapshot in a
preformatted output. This was deliberate to show how hard is to read
this on a terminal window. 

        Component_Graph.cpp: In member function
        'boost::shared_ptr<libreverse::infrastructure::Component>
        libreverse::infrastructure::Component_Graph::get_Component(void*
        const&) const':
        Component_Graph.cpp:127: error: conversion from
        'boost::adj_list_vertex_property_map<boost::adjacency_list<boost::setS, boost::setS, boost::directedS, boost::property<boost::vertex_index_t, unsigned int, boost::property<boost::vertex_name_t, boost::shared_ptr<libreverse::infrastructure::Component>, boost::no_property> >, boost::no_property, boost::no_property, boost::listS>, boost::shared_ptr<libreverse::infrastructure::Component>, const boost::shared_ptr<libreverse::infrastructure::Component>&, boost::vertex_name_t>' to non-scalar type 'boost::adj_list_vertex_property_map<boost::adjacency_list<boost::setS, boost::setS, boost::directedS, boost::property<boost::vertex_index_t, unsigned int, boost::property<boost::vertex_name_t, boost::shared_ptr<libreverse::infrastructure::Component>, boost::no_property> >, boost::no_property, boost::no_property, boost::listS>, boost::shared_ptr<libreverse::infrastructure::Component>, boost::shared_ptr<libreverse::infrastructure::Component>&, boost::vertex_name_t>' requested

I was wondering if I could get something like:

Component_Graph.cpp: In member function
'boost::shared_ptr<libreverse::infrastructure::Component>
libreverse::infrastructure::Component_Graph::get_Component(void* const&) const':

Component_Graph.cpp:127: error: conversion from 
'boost::adj_list_vertex_property_map<
    boost::adjacency_list<
       boost::setS,
       boost::setS,
       boost::directedS,
       boost::property<
          boost::vertex_index_t,
          unsigned int,
          boost::property<
              boost::vertex_name_t,
              boost::shared_ptr<
                 libreverse::infrastructure::Component
              >,
              boost::no_property
	>
       >,
       boost::no_property,
       boost::no_property,
       boost::listS
    >,
    boost::shared_ptr<
       libreverse::infrastructure::Component
    >,
    const boost::shared_ptr<
       libreverse::infrastructure::Component
    >&,
    boost::vertex_name_t
>' to non-scalar type 
'boost::adj_list_vertex_property_map<
    boost::adjacency_list<
       boost::setS,
       boost::setS,
       boost::directedS,
       boost::property<
          boost::vertex_index_t,
          unsigned int,
          boost::property<
              boost::vertex_name_t,
              boost::shared_ptr<
                  libreverse::infrastructure::Component
              >,
              boost::no_property
          >
       >,
       boost::no_property,
       boost::no_property,
       boost::listS
   >,
   boost::shared_ptr<
       libreverse::infrastructure::Component
   >,
   boost::shared_ptr<
       libreverse::infrastructure::Component
   >&,
   boost::vertex_name_t
>' requested

Stephen




More information about the Gcc mailing list