The problem relates to functoid objects ("function like" objects, ie
ones with an operator() defined) and references to them within a
namespace. When Koenig lookup is used to find such a
reference-to-functoid, g++ seems to find it okay, but then states
"cannot be used as a function". If I use
--- Comment #2 from pierhyth at gmail dot com 2005-11-09 01:33 ---
The current C++ standard says that Koenig applies "when an unqualified
name is used as the postfix-expression in a function call" which from
what I've read, must include the case of functoids/functors an
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702
--- Comment #9 from Mark Phillips ---
Thanks Jonathan for the information on the updated standard and the rationale
behind restricting Koenig to actual functions and function templates.
In one way it is a bit of a pity - it does make functors sec