
9 Jul
2008
9 Jul
'08
7:57 p.m.
Ferdinand Prantl wrote:
Hello,
I would like to improve usage of boost::any with text (char*) constants. This would be the goal:
boost::any foo("foo");
This is not a char*. There is no problem putting a char* in a boost::any. It's a const char[N]. An array. To insert an object into a boost::any, the object needs to be copyable. Arrays aren't. The end.