Solved

What does this do?

Posted on 2004-09-13
4
204 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

778 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