Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-17 07:11:24


From: "hicks" <hicks_at_[hidden]>
> 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.

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net