[osg-users] Mac compilation error

Robert Osfield robert.osfield at gmail.com
Mon Nov 23 00:45:16 PST 2015


Hi Philippe,

This is a bug, it should be a reference - I must have made a copy and paste
error when adapting the line to use the template ref_ptr interface.

Robert.

On 22 November 2015 at 10:02, philippe renon <philippe_renon at yahoo.fr>
wrote:

> Hi,
>
> The include/osgViewer/View include has that suspicious line:
>
>     template<class T> void setImagePager(const osg::ref_ptr<T>* ip) {
> setImagePager(ip.get()); }
>
> which fails to compile on mac with :
>
>     member reference base type 'const osg::ref_ptr<T> *' is not a structure or union
>
>
> This pattern using osg::ref_ptr is used in many places but that suspicious
> line is only one with pointer instead of reference.
>
> Philippe.
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151123/44b9eac2/attachment-0003.htm>


More information about the osg-users mailing list