When programming in c++ STL, or intensively using ‘templatization’, and some compiling error happens, often the error report is really long, and often too much not needed information is given.
I’m talking about gcc, i don’t know if with other compilers is different, but some times even for just a typo, it takes a while to catch the error purging the
<ns::type<ns::type<ns::type, ns::type<...><ns::type<...> > > > >
I’m looking for some compiler flag, trick, workaround or methodology ( i currently copy past the error and put on two lines what i have and what compiler use to want and removing variables bookmarks… (kinda sad procedure for a not-so-uncommon ctrl+s non well performed)) that could make this task quicker or just helping me ( even only some IDE error syntax highlight… )
STLFilt: An STL Error Message Decryptor for C++ is a popular tool to filter these verbose error messages and turn them into something more legible.
From their website:
Here’s a demo run that shows how it can be useful:
The only downside I can see is that it mislabels the C++ Standard Library. 🙁
Here’s a relevant journal article by STLFilt’s author.