[Bug c++/95910] transform view in combination with single view calls const qualified begin even if it is not const
Wed Jul 8 13:55:07 GMT 2020
--- Comment #4 from Rene Rahn <email@example.com> ---
> Hmm, if you can't easily specify a concrete return type, then you could maybe > try constraining the lambda appropriately. In this particular example you
> could replace the static_assert with an analogous require-clause, which would > turn the hard error into a SFINAE-friendly error.
Yes, this is basically what I would do know (AFAIK also recommended to always
constraint generic types). In this case I could work with an explicit return
Many thanks for your support and time.
More information about the Gcc-bugs