[osg-users] strange behaviour on dynamic_cast on Mac (QtCreator)

2015-01-18 Thread Trajce Nikolov NICK
Hi Community,

I have this case:

osg::ref_ptrosg::Node node  = new osg::Geode;
osg::Group* group = dynamic_castosg::Group*(node.get());
osg::Geode* geode = dynamic_casyosg::Geode*(node.get())

what is strange is that both are valid, but it should fail on the Group
case. This was testted on Linux and Windows, and it works as it should,
only strange on Mac

Thanks for any input as always

Cheers,
Nick
-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] strange behaviour on dynamic_cast on Mac (QtCreator)

2015-01-18 Thread Mattias Helsing
Hi Nick,

is it possible that you have different versions of the osg source on
your computers. In the trunk a Geode is-a Group since a couple of
months or so. Can you verify this ?

cheers
Mattias

On Sun, Jan 18, 2015 at 9:15 AM, Trajce Nikolov NICK
trajce.nikolov.n...@gmail.com wrote:
 Hi Community,

 I have this case:

 osg::ref_ptrosg::Node node  = new osg::Geode;
 osg::Group* group = dynamic_castosg::Group*(node.get());
 osg::Geode* geode = dynamic_casyosg::Geode*(node.get())

 what is strange is that both are valid, but it should fail on the Group
 case. This was testted on Linux and Windows, and it works as it should, only
 strange on Mac

 Thanks for any input as always

 Cheers,
 Nick
 --
 trajce nikolov nick

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

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


Re: [osg-users] strange behaviour on dynamic_cast on Mac (QtCreator)

2015-01-18 Thread Trajce Nikolov NICK
Hi Mattias,

yes, you are right. My bad. Geode is indeed a Group now.

Thanks a lot

Nick

On Sun, Jan 18, 2015 at 10:33 AM, Mattias Helsing helsin...@gmail.com
wrote:

 Hi Nick,

 is it possible that you have different versions of the osg source on
 your computers. In the trunk a Geode is-a Group since a couple of
 months or so. Can you verify this ?

 cheers
 Mattias

 On Sun, Jan 18, 2015 at 9:15 AM, Trajce Nikolov NICK
 trajce.nikolov.n...@gmail.com wrote:
  Hi Community,
 
  I have this case:
 
  osg::ref_ptrosg::Node node  = new osg::Geode;
  osg::Group* group = dynamic_castosg::Group*(node.get());
  osg::Geode* geode = dynamic_casyosg::Geode*(node.get())
 
  what is strange is that both are valid, but it should fail on the Group
  case. This was testted on Linux and Windows, and it works as it should,
 only
  strange on Mac
 
  Thanks for any input as always
 
  Cheers,
  Nick
  --
  trajce nikolov nick
 
  ___
  osg-users mailing list
  osg-users@lists.openscenegraph.org
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




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