#pragma warning(push, 3)
#include <iostream>
using namespace std;
#pragma warning(pop)
void main()
{
}
Level 4 Warning with STL compilation
Has anyone succesfully compiled a program with STL at level 4 warning in Visual C++ 6. The pragma''s doesn''t seem to work.
The code below is generating tons and tons of warnings
I''ve tried doing this before, professionally. If you are using MFC and STL together, you simply cannot compile at Level 4 warnings and expect to not get any warnings, no matter how beautiful your code. Believe me, a lot of good engineers tried.
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Isn''t that what this is for:
People might not remember what you said, or what you did, but they will always remember how you made them feel.
~ (V)^|) |<é!t|-| ~
#if defined( _MSC_VER ) #pragma warning(disable:4786)#endif
People might not remember what you said, or what you did, but they will always remember how you made them feel.
~ (V)^|) |<é!t|-| ~
It's only funny 'till someone gets hurt.And then it's just hilarious.Unless it's you.
I''m not using MFC but I''m still getting warnings.
I''m trying to get the STL headers to compile at Level 3 while my code at Level 4 but it seems that the pragma''s does not work.
MadKeithV: Isn''t 4786 related to truncated of overly long identifier strings. How does that help?
I''m trying to get the STL headers to compile at Level 3 while my code at Level 4 but it seems that the pragma''s does not work.
MadKeithV: Isn''t 4786 related to truncated of overly long identifier strings. How does that help?
...because std::map will create horrendously long templated variable names. Try this for fun!
Just maps a string to a vector, something anybody could want, but it creates some hella-long names. I always use that pragma in my code.
typedef map<string, vector<int> > MyMap;...MyMap map;
Just maps a string to a vector, something anybody could want, but it creates some hella-long names. I always use that pragma in my code.
Yeah Keith, we had that pragma set, but there were other problems. We eventually had to change our specs.
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement