2013-12-10

When I have a class that's declared completely within a header file (templated types), and that header file is included by multiple cpp source files, compilation errors appear to be reported once per source file that includes the header. So, if I have a header that's used in 8 different places, each error is reported 8 times.

Suggestions? Do I have to live with this, am I doing it wrong, or what?

Edit

Aside from just being generally annoying, this also messes up the error popup when hovering over the red squiggly line in VS. Yay.

(Using Visual Studio 2012)

Show more