[Bug libstdc++/49058] [C++0x] Bind no-arguments functor failed using std::bind with -pedantic option.
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Sun May 22 22:35:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49058
--- Comment #14 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-22 22:20:24 UTC ---
Sorry, hit return inadvertently. Anyway, the idea would be, instead of just
writing:
const _Functor
writing something like:
typename conditional<(sizeof...(_Args) >= 0,
typename add_const<_Functor>::type,
typename add_const<_Functor>::type>::type
I think that should work, it does in some simple tests I did, and all in all,
properly polished, doesn't even look too bad, IMHO.
More information about the Gcc-bugs
mailing list