Skip to content

Instantly share code, notes, and snippets.

@ObserverHerb
Last active June 7, 2024 00:32
Show Gist options
  • Save ObserverHerb/8ca78add169ca1e3bc640b420c0fe483 to your computer and use it in GitHub Desktop.
Save ObserverHerb/8ca78add169ca1e3bc640b420c0fe483 to your computer and use it in GitHub Desktop.
Each element of T remains a pointer if it's a pointer, otherwise the type becomes a reference
template <typename ...T> void Test(typename std::conditional<std::is_pointer<T>::value,T,T&>::type ...args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment