mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-29 01:41:42 +00:00
14 lines
264 B
C++
14 lines
264 B
C++
#include <type_traits>
|
|
|
|
struct S {};
|
|
|
|
template <class T, std::enable_if_t<std::is_pointer_v<T>, int> = 0>
|
|
void pick(T value) {}
|
|
|
|
template <class T, std::enable_if_t<std::is_class_v<T>, int> = 0>
|
|
void pick(T value) {}
|
|
|
|
void run(S* p, S s) {
|
|
pick(p);
|
|
pick(s);
|
|
}
|