J-S & Robert - with regard to C4251:

As J-S has noted, C4251 is often generated for STL usage; in particular, C4251 
is often errorneously generated for STL usage in *private* members or 
functions. STL usage in *public* members or functions in a DLL-exported class 
is problematic (as would be protected usage if the class is derived from 
outside of the DLL), but internal private usage of non-exportable elements such 
as STL is a non-issue. This production of DLL export warnings for 
inacessible/private members is a known VS quirk.

The best approach to working with C4251 is to selectively disable it around 
class declarations which produce such false warnings. In some cases, C4251 may 
expose an actual problem in a DLL interface, and thus it should not be globally 
supressed, in general.

------------------------
Matthew W Fuesz
Software Engineer Asc
Lockheed Martin STS

------------------
Read this topic online here:
http://osgforum.tevs.eu/viewtopic.php?p=5146#5146





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to