[Bug libstdc++/100940] views::take and views::drop should not define _S_has_simple_extra_args

rs2740 at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 15 00:54:39 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100940

--- Comment #7 from TC <rs2740 at gmail dot com> ---
(In reply to Patrick Palka from comment #6)
> 
> For the other adaptors, we still unconditionally disable perfect forwarding
> call wrapper semantics.  I'm not sure if the performance/diagnostic tradeoff
> is worth it to enable perfect forwarding semantics when the function object
> is non-trivial.

Personally, I'd happily pay some diagnostic complexity when I get things wrong
if that means I get better performance when I get things right. Good
diagnostics only matter when my code is broken, while performance matters when
my code is working. The former should (hopefully) be a transient condition.


More information about the Gcc-bugs mailing list