Код: Выделить всё
#include
#include
#include
struct A{
A(int){};
};
bool operator std::same_as; }){
//alternative 2)
if constexpr(requires(T v){ {std::numeric_limits::lowest() < v} -> std::same_as; }){
if (std::numeric_limits::lowest() < v){
std::cout Godbolt). < /p>
Я знаю о подобном вопросе, но мне кажется, что я не совпадаю. мой один.
Подробнее здесь: [url]https://stackoverflow.com/questions/79439050/requires-expression-apparently-accepting-invalid-code[/url]