Solved

What does this do?

Posted on 2004-09-13
4
203 Views
Last Modified: 2010-04-01
#pragma warning( disable : 4786 4503)


thanks
-Paul
0
Comment
Question by:PMH4514
  • 2
4 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 50 total points
ID: 12047659
It tells the compiler to ignore (not display) warnings with ID 4786, and 4503.

0
 
LVL 86

Expert Comment

by:jkr
ID: 12047662
It disables the compiler warnings

4786 'identifier' : identifier was truncated to 'number' characters in the debug information

4503 'identifier' : decorated name length exceeded, name was truncated

which is useful when compiling templates, since the symbol names usually become quite lengthy.
0
 

Author Comment

by:PMH4514
ID: 12047709
oh.. well that makes sense.. you both are right.
0
 
LVL 86

Expert Comment

by:jkr
ID: 12048614
Thanks. I am glad the explanation helped.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now