Hi,
Yes I can confirm I get the error in VS2008.
I think it's all down to the standard of C++.
It works fine with VS2010 and up which why most people may have not noticed
the error.
To me it looks like the standard of C++, .data must be implemented in a
later version.
VS2008 must support C++98 and VS2010 C++03/0x and VS2012 C+11, so the
deduction is, .data is implemented in a later version of C++(0x/011).
You  may be better of with:
_document = _dae->openFromMemory(fileURI, buffer.front());
But It don't know much about dae.
Does OSG stick to a C++ standard such as C++98, or am i talking gibberish!

Cheers
       
Martin 




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Aurelien Albert
Sent: 01 November 2012 20:06
To: [email protected]
Subject: Re: [osg-submissions] Fix compile error for DAE plugin

According to the std::vector C++ reference :
http://www.cplusplus.com/reference/stl/vector/

There is no "data" method on std::vector class, so I think this compile
error should affect other compilers than VS2008

Could anyone confirm this issue ? Because I'm surprised that no one reports
this problem.

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





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

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

Reply via email to