<div dir="ltr"><div><div>Hi Philippe,<br><br></div>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.<br><br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 22 November 2015 at 10:02, philippe renon <span dir="ltr"><<a href="mailto:philippe_renon@yahoo.fr" target="_blank">philippe_renon@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:lucida console,sans-serif;font-size:13px"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">The include/osgViewer/View include has that suspicious line:<br></div><div dir="ltr"><br></div><div dir="ltr"> template<class T> void setImagePager(const osg::ref_ptr<T>* ip) { setImagePager(ip.get()); }</div><div dir="ltr"><br></div><div dir="ltr">which fails to compile on mac with :</div><div><pre> member reference base type 'const osg::ref_ptr<T> *' is not a structure or union</pre></div><div dir="ltr"><br></div><div dir="ltr">This pattern using osg::ref_ptr is used in many places but that suspicious line is only one with pointer instead of reference.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">Philippe.<br></div><div><br></div></font></span></div></div><br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>