Boost logo

Boost :

From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2008-07-09 15:57:37

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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at