Hey,
I'm starting to try out boosts smart pointers, and so far I love'em.
But I have come to a problem that I have a hard time solving, and I might be blind, but I can't find any information about it, so I come her.
The thing I try to do is to cast a class to one of it's childs.
This is how it looks:
SceneNodeBase -> RootNode (RootNode inherits from SceneNodeBase)
The thing is that my scene graph manager got a function that's called
When I want to find my root node, I type,
The trouble here is that my compiler complains about...
I have found boost:static_pointer_cast() and boost:dynamic_pointer_cast(), but I can't figure out if they are right, or how I use them.
Anyone here that could help me with this problem?
Best regards
Jesper, Sweden.
I'm starting to try out boosts smart pointers, and so far I love'em.
But I have come to a problem that I have a hard time solving, and I might be blind, but I can't find any information about it, so I come her.
The thing I try to do is to cast a class to one of it's childs.
This is how it looks:
SceneNodeBase -> RootNode (RootNode inherits from SceneNodeBase)
The thing is that my scene graph manager got a function that's called
When I want to find my root node, I type,
The trouble here is that my compiler complains about...
I have found boost:static_pointer_cast() and boost:dynamic_pointer_cast(), but I can't figure out if they are right, or how I use them.
Anyone here that could help me with this problem?
Best regards
Jesper, Sweden.