[osg-users] OpenVRML and Windows

Serge Lages serge.lages at gmail.com
Fri Dec 5 07:08:33 PST 2008


I've made it build by adding const to the size_t parameter, don't ask me why
it works like that...

So I've managed to build OpenVRML, I am currently building OSG with the VRML
plugin, if everything work, I'll post a patch for the OpenVRML sources.

On Fri, Dec 5, 2008 at 4:04 PM, Simon Hammett <s.d.hammett at googlemail.com>wrote:

> 2008/12/5 Serge Lages <serge.lages at gmail.com>:
> > I tried the patch but it doesn't work for Visual Studio.
> >
> > Anyone have an idea on how to transform a method declaration like that :
> >
> > float (&operator[](size_t index) throw ())[4];
> >
> > In something similar but VS compliant ?
> >
>
> If you are trying to get a pointer to member function you need the
> class name in front of operator eg
>
> float (&AClass::operator[](size_t index) throw())[4];
>
> VC7.1 compiles that, but later versions are more standards compliant.
>
> --
> The truth is out there. Usually in header files.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Serge Lages
http://www.tharsis-software.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20081205/fdd1cabb/attachment.htm>


More information about the osg-users mailing list