This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Is there a way to pretty-print output for templates errors
- From: Stephen Torri <storri at torri dot org>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Wed, 21 Mar 2007 10:06:16 -0500
- Subject: Is there a way to pretty-print output for templates errors
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