Re: [osg-users] multiple inheritance ERROR

2014-09-26 Thread Javier Taibo
  Search for dreaded diamond problem in Google and you'll find good
explanations of this problem and possible solutions.

  Regards,


On Fri, Sep 26, 2014 at 5:01 AM, jiang.sa...@gmail.com 
jiang.sa...@gmail.com wrote:

 Hi,

 recently, I write a sample application based on osgEarth 2.5.  when using 
 FeatureManipTool class  like the way

 osg::ref_ptrFeatureManipTool _featureManipulator;

 I got some errors:

 error C2385: ambiguous access of 'unref'
 1 could be the 'unref' in base 'osg::Referenced'
 1 or could be the 'unref' in base 'osg::Referenced'

 after debuging, I found that this class is using multiple inheritance.
 then how can I solve the problem?
 thanks!


 --
 jiang.sa...@gmail.com

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Javier Taibo
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] multiple inheritance ERROR

2014-09-25 Thread jiang.sa...@gmail.com
Hi,

recently, I write a sample application based on osgEarth 2.5.  when using 
FeatureManipTool class  like the way 

osg::ref_ptrFeatureManipTool _featureManipulator;

I got some errors: 

error C2385: ambiguous access of 'unref' 
1 could be the 'unref' in base 'osg::Referenced' 
1 or could be the 'unref' in base 'osg::Referenced'

after debuging, I found that this class is using multiple inheritance. then how 
can I solve the problem?
thanks!




jiang.sa...@gmail.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org