This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] libstdc++/12854
Zack Weinberg <zack@codesourcery.com> writes:
| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
| > | Using -Weffc++ with libstdc++ without these patches is pretty much
| > | impossible.
| >
| > The compiler should not be warning in system headers in the first
| > place. Something is going wrong there.
|
| It's probably a case of the warning issues when the objectionable
| construct is *used*, outside the system header?
A simple case is when user writes this
#include <vector>
int main() { std::vector<int> v; }
-Weffc++ spits out nonsensical remarks in what is consdered system
headers.
-- Gaby