BUG: boost::lexical_cast ignores virtual functions.
I found that when I call boost::lexical_caststd::string() with an
object that has virtual functions, it fails to dereference the virtual
functions. It also cannot use an Abstract base type. Attached is example
code.
I think the problem is simply that the file boost/lexical_cast.hpp, on
line 185 has:
Target lexical_cast(Source arg)
This should be
Target lexical_cast(Source& arg)
At least, this fixes all of my problems.
John
=:->
#include <iostream>
#include <string>
#include
participants (1)
-
John F Meinel Jr