[Bug c++/88128] G++ should implement CWG 330
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 6 11:08:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88128
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Viktor Ostashevskyi from comment #3)
> > Is it possible to make std::span<const T> from std::vector<T>?
>
> Yes, that works with current trunk.
Although that could be a bug: the constraints use declval<_Container&>() but
should be using declval<const _Container&>().
More information about the Gcc-bugs
mailing list