Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:34
Jim Crafton1-Nov-05 9:34 
AnswerRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:39
Jim Crafton1-Nov-05 9:39 
GeneralRe: C++, STL, and warning level 4 Pin
Chris Losinger1-Nov-05 9:43
professionalChris Losinger1-Nov-05 9:43 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:45
Jim Crafton1-Nov-05 9:45 
GeneralRe: C++, STL, and warning level 4 Pin
Nemanja Trifunovic1-Nov-05 15:23
Nemanja Trifunovic1-Nov-05 15:23 
AnswerRe: C++, STL, and warning level 4 Pin
Chris Losinger1-Nov-05 9:41
professionalChris Losinger1-Nov-05 9:41 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:43
Jim Crafton1-Nov-05 9:43 
AnswerRe: C++, STL, and warning level 4 Pin
Rob Caldecott1-Nov-05 9:48
Rob Caldecott1-Nov-05 9:48 
I have always been lead to believe that the STL shipped with VC6 is an absolute dog and should be avoided. Whether there is much truth in that or not is up to a decent Google search Smile | :) I do notice that Scott Meyers excellent Effective STL book contains a whole appendix on working around limitations in the VC6 STL.

I use a lot of STL with VS2003 and always compile at warning level 4. I get one warning for release builds when including, amongst a few others, <vector> (some debug code that is unreachable in release mode). Consequently I have something like this:

#pragma warning(push)
#pragma warning(disable: 4702)
#include <vector>
#pragma warning(pop)


I tend to include a special stdstl.h file in my pre-compiled header, containing all the STL headers my project needs (including some boost headers) so I only need this hack in one place.

I haven't tried a build in VS2005 yet, so maybe this C4702 warning has been dealt with.


The Rob Blog
Google Talk: robert.caldecott
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 9:53
Jim Crafton1-Nov-05 9:53 
GeneralRe: C++, STL, and warning level 4 Pin
Jim Crafton1-Nov-05 10:28
Jim Crafton1-Nov-05 10:28 
GeneralRe: C++, STL, and warning level 4 Pin
Nemanja Trifunovic1-Nov-05 15:30
Nemanja Trifunovic1-Nov-05 15:30 
AnswerRe: C++, STL, and warning level 4 Pin
S Douglas1-Nov-05 19:30
professionalS Douglas1-Nov-05 19:30 
QuestionNeed assistance accessing FMTID Pin
KaptinKrunch1-Nov-05 8:47
KaptinKrunch1-Nov-05 8:47 
AnswerRe: Need assistance accessing FMTID Pin
Jeffrey Walton1-Nov-05 14:02
Jeffrey Walton1-Nov-05 14:02 
GeneralRe: Need assistance accessing FMTID Pin
KaptinKrunch1-Nov-05 16:47
KaptinKrunch1-Nov-05 16:47 
GeneralRe: Need assistance accessing FMTID Pin
Jeffrey Walton2-Nov-05 2:40
Jeffrey Walton2-Nov-05 2:40 
GeneralRe: Need assistance accessing FMTID Pin
KaptinKrunch3-Nov-05 5:00
KaptinKrunch3-Nov-05 5:00 
GeneralRe: Need assistance accessing FMTID Pin
Jeffrey Walton3-Nov-05 9:21
Jeffrey Walton3-Nov-05 9:21 
QuestionComplete Vector elements deletion Pin
itkid1-Nov-05 6:28
itkid1-Nov-05 6:28 
AnswerRe: Complete Vector elements deletion Pin
Maximilien1-Nov-05 6:34
Maximilien1-Nov-05 6:34 
AnswerRe: Complete Vector elements deletion [edited] Pin
toxcct1-Nov-05 6:36
toxcct1-Nov-05 6:36 
GeneralRe: Complete Vector elements deletion [edited] Pin
itkid1-Nov-05 7:44
itkid1-Nov-05 7:44 
GeneralRe: Complete Vector elements deletion [edited] Pin
Kevin McFarlane1-Nov-05 10:15
Kevin McFarlane1-Nov-05 10:15 
QuestionDNS program Pin
c++code1011-Nov-05 5:54
c++code1011-Nov-05 5:54 
QuestionGoogolplex Program Pin
ericelysia1-Nov-05 5:03
ericelysia1-Nov-05 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.