Hi Thibault,
Your were right. I was frustrated. I have always been of the mode that fully
qualifying a name was better than the opposite. But I was wrong. And I
thought I was pretty good at C++. Who knew?
Keith
----- Original Message -----
From: "Thibault Genessay" <[email protected]>
To: "OpenSceneGraph Users" <[email protected]>
Sent: Tuesday, May 12, 2009 10:26 AM
Subject: Re: [osg-users] Stupid VC warning message
Hi Keith
You probably overlooked the error message from the compiler, which is
quite clear (and not stupid at all). You should not use the enumerated
type name in the qualified name, i.e. instead of
tex->setWrap(osg::Texture::WRAP_S, osg::Texture::WrapMode::REPEAT);
write
tex->setWrap(osg::Texture::WRAP_S, osg::Texture::REPEAT);
Regards
Thibault
On Tue, May 12, 2009 at 5:16 PM, Keith Steffen
<[email protected]> wrote:
Hi all,
I'm using the following lines of code:
osg::Texture2d *tex = new osgTexture2d();
tex->setWrap(osg::Texture::WRAP_S, osg::Texture::WrapMode::REPEAT);
I keep getting a VC warning message that says:
warning C4482: nonstandard extension used: enum 'osg::Texture::WrapMode'
used in a qualified name
I cannot figure out how to remove the warning. If I remove osg, Texture,
or
WrapMode I get a compiler error. I don't want to turn off warnings, I just
want to get rid of this particular message. What is wrong with
fully qualifiying the enumeration value?
Keith
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org