Apr 23, 2024 at 8:04pm
Why does s have the value false?
1 2 3 4 5 6
|
template<typename T> char test_have_range(decltype(&T::begin), decltype(&T::end));
template<typename T> short test_have_range(...);
constexpr bool s = sizeof(test_have_range<list<int>>(0,0)) == sizeof(char);
static_assert(s);
|
Regards,
Juan
Last edited on Apr 23, 2024 at 8:21pm