[Bug c++/68784] deductible parameter type still requires explicit reference cast, e.g., std::thread
xuancong84 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 8 10:48:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68784
--- Comment #2 from Wang Xuancong <xuancong84 at gmail dot com> ---
All standards are made by people. No standard is perfect. If a standard causes
more inconvenience to the users, then it is considered sub-optimal and has room
for improvement.
Thus, unless you can give me a counter example that automatic parameter
resolution can cause problems in some cases, I would consider the standard is
not good enough, and will probably be fixed in some future C++ standards.
But since g++ is indeed following the standard, it should not be considered as
a bug for now, formally speaking.
More information about the Gcc-bugs
mailing list