N
Size: a a a
АК
D
ПК
template <const char*> test {};
?ПК
D
template <typename T, T V>
struct ubiq {};
template <typename T>
constexpr auto is_get_constexpr(T o) -> decltype(std::declval<ubiq<decltype(o.get()), o.get()>(), bool) {
return true;
}
template <typename T>
constexpr auto is_get_constexpr(T o) -> bool { return false; }
ПК
template <typename T, T V>
struct ubiq {};
template <typename T>
constexpr auto is_get_constexpr(T o) -> decltype(std::declval<ubiq<decltype(o.get()), o.get()>(), bool) {
return true;
}
template <typename T>
constexpr auto is_get_constexpr(T o) -> bool { return false; }
decltype(o.get())
не надо вычислять, он просто const char* будетD
decltype(o.get())
не надо вычислять, он просто const char* будетПК
ПК
D
D
АК
ПК
D
АК
N
template <const char*> test {};
?ПК