
28 Sep
2010
28 Sep
'10
5:27 p.m.
On 28/09/10 18:09, dakatz@akamai.com wrote:
When I tried to call doSomething with a string literal argument (i.e. table.doSomething("Hello")), it of course failed since boost:any can't be initialized with an array. Okay - no problem. Another overload should do the trick, right?
So I added an overload like this:
------------------------------------------------------------------------ class Table { public: void doSomething(const boost::any& input);
// Supposed to take a const char*, convert it to a string, and // pass off to boost::any case. void doSomething(const std::string& input);
How about
template