[Bug c++/24702] New: Koenig found functoid ref, but "cannot be used as a function"

2005-11-06 Thread pierhyth at gmail dot com
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

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2005-11-08 Thread pierhyth at gmail dot com
--- 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

[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"

2013-09-05 Thread pierhyth at gmail dot com
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