From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-11-18 12:35:44
On Sunday 03 February 2002 05:46 pm, Ihsan Ali Al Darhi wrote:
> I looked at the documrntation or 'any' class. It looks good but it didn't
> tell any thing if i can use it as follows
> any x=foo();
"x" will contain the value returned from the function "foo" (if "foo" is a
function), or a value of type "foo" (if "foo" is a type).
> It also didn't discuss this case
> any x=5;
> any y="5";
> any z=x+y;
> Now what is z? A string or a numeric?
You can't do that with any, because the '+' operator is not defined.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk