17 Jan
2002
17 Jan
'02
12:11 p.m.
From: "hicks"
Hi
Thats very helpful, thanks. Do you know why the compiler places precedence on that interpretation, rather than on one giving an instatiation of a local variable?
The C++ standard says that a function declaration takes precedence. Don't ask me why. :-) -- Peter Dimov Multi Media Ltd.
Peter Dimov wrote:
boost::tokenizer<> tok(std::string(ac0));
declares a function named 'tok' that returns a boost::tokenizer<> and has one parameter of type std::string named 'ac0'.
The parentheses around ac0 are ignored.