
8 Feb
2024
8 Feb
'24
4:57 p.m.
чт, 8 февр. 2024 г. в 19:11, Andrey Semashev via Boost <boost@lists.boost.org>:
Template interface parity is useful in cases like this:
https://github.com/boostorg/container/blob/6e697d796897b32b471b4f0740dcaa03d...
https://github.com/boostorg/container/blob/6e697d796897b32b471b4f0740dcaa03d...
std::basic_string instead uses this check:
This overload participates in overload resolution only if std::is_convertible_v<const StringViewLike&, std::basic_string_view<CharT, Traits>> is true and std::is_convertible_v<const StringViewLike&, const CharT*> is false.