Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2005

Tip: Looking for answers? Try searching our database.

about vector

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mestupid - 31 Jan 2005 06:19 GMT
Hi everybody,
I have a program which use <vector>. When I compile the program the vc.net
2003 compiler always complains that:

......
Compiling resources...
Linking...
Generating code
c:\program files\microsoft visual studio .net 2003\vc7\include\vector(834) :
warning C4702: unreachable code
c:\program files\microsoft visual studio .net 2003\vc7\include\vector(856) :
warning C4702: unreachable code
Finished generating code

Does anyone know what's wrong. and how could i deal with it. I like to set
the compile warning level to be 4 so that I could watch all that happened.
Carl Daniel [VC++ MVP] - 31 Jan 2005 06:47 GMT
> Hi everybody,
> I have a program which use <vector>. When I compile the program the
[quoted text clipped - 13 lines]
> to set the compile warning level to be 4 so that I could watch all
> that happened.

There's no guarantee that the STL headers compile clean at /W4.  In this
case, there's code that's not reachable - presumably it'd be reachable if
you instantiated the vector on some other type.

-cd

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.