On 11/12/2024 21:41, Jonathan Wakely wrote:
Hmm, the warning is useful if somebody does:std::span s({1,2,3}); So I think we do want the warning, but maybe give it a special case so it doesn't warn for an rvalue std::span.
Do you have anything in mind to make this work? Note that the above is akin to: std::vector<int> getVector(); std::span<const int> sp = getVector(); which is also similar to: std::string getString(); std::string_view sv = getString(); and none of these warn at the moment. Thank you, -- Giuseppe D'Angelo
smime.p7s
Description: S/MIME Cryptographic Signature