Good catch Michael, fix now merged and submitted to svn/trunk. Cheers, Robert.

On Tue, Jan 18, 2011 at 12:33 PM, Michael Platings <[email protected]> wrote:
> Hi Robert,
> I've attached a fix for a subtle bug that causes animations (and quite
> possibly other things) to be serialized incorrectly.
>
> For the following code:
>
> #define MYMACRO(NAME) myOutputStream << #NAME;
> MYMACRO(Group)
>
> you would expect that "Group" would be output. However, as there are many
> overloaded operator<< functions, none of which take a const char* argument,
> the function that's actually called is operator<<(bool). Hence what actually
> gets output is "TRUE".
> An actual example of this is in serializers\osgAnimation\Animation.cpp,
> WRITE_CHANNEL_FUNC2.
>
> So the simple solution to this is to add operator<<(const char*), attached.
>
> Thanks
> -Michael
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to