Hi,

I'm trying to compile OSG 2.8.3 source under VS2010 and have run into a couple 
problems.  The first was resolved easily - it was the back_inserter problem 
requiring adding the <iterator> header to a couple files.

The other issue, however, I have found no previous discussion regarding.

Specifically, when compiling the osgIntrospection project, in the 'Value' 
include, it runs into problems with the instance_box class's implementation of 
the 'nullptr' method.

Not being well-versed in C++, it took a couple hours of research, but it 
appears to me the solution is fairly obvious:  the code is using a reserved 
word (at least by MSVC) to declare a function.  MSDN says that MSVC provides 
'nullptr' and '__nullptr' as values for testing pointers.  The former is for 
"managed" code, the later for "native" code.  Effectively, either one evaluates 
to 0, but they're intended as static values, so it seems obvious to me why this 
doesn't work.  Further, it seems apparent to me that this must be unique to 
MSVC++.

So, should I just rename the 'nullptr' virtual method and variable 
declarations?  I don't see that there'd be any other option, unless someone 
happens to know of a MSVC++  configuration setting or something that would 
solve this...


Thank you!

Joel

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33055#33055





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

Reply via email to