Re: [Cppunit-devel] VC++ warning
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-11-05 19:10:36
|
If you look at config-msvc6.h, you'll see that's already done. This get ride of most of those warnings, but not all. Hence the question... Baptiste. ----- Original Message ----- From: "Mats Kjällström" <mat...@fr...> To: <cpp...@li...> Sent: Tuesday, November 05, 2002 4:47 PM Subject: [Cppunit-devel] VC++ warning > Hi! I just downloaded the latest cppunit (1.9.10), and read the FAQ supplied > with it. One VC++-related question was about the warning 4786, and since I'm > an avid hater of this message, and have worked out what to do about it, I > thought I'd give you some info. > > The warning is due to a template type becoming too long (> 255 characters), > which happens all the time with nested templates in e.g. STL. There is a way > to get rid of the warning, and that's to add the following line somewhere > early in the compilation (like in the win32-specific part of portability.h). > > #pragma warning(disable:4786) > > Cheers, > / Mats K > |