mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
12 lines
240 B
C++
12 lines
240 B
C++
#include <type_traits>
|
|
|
|
template <class T, std::enable_if_t<std::is_void_v<T>, int> = 0>
|
|
void pick(T value) {}
|
|
|
|
template <class T, std::enable_if_t<std::is_pointer_v<T>, int> = 0>
|
|
void pick(T value) {}
|
|
|
|
void run() {
|
|
void* p;
|
|
pick(p);
|
|
}
|