This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"
- From: "pierhyth at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Sep 2013 01:18:57 +0000
- Subject: [Bug c++/24702] Koenig found functoid ref, but "cannot be used as a function"
- Auto-submitted: auto-generated
- References: <bug-24702-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24702
--- Comment #9 from Mark Phillips <pierhyth at gmail dot com> ---
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 second-class citizens
compared to functions - but the linked document explains some additional
considerations, namely the risk of over-visibility of names. Perhaps it is a
reasonable choice for now. Hopefully a better solution will be introduced down
the track (maybe extending it to functors, while at the same time
narrowing/allowing-control-over namespaces to be looked up).