Skip to content

Instantly share code, notes, and snippets.

@def-
Created June 15, 2020 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save def-/6aa3c33b3a8be409166618aa32c1e0cf to your computer and use it in GitHub Desktop.
Save def-/6aa3c33b3a8be409166618aa32c1e0cf to your computer and use it in GitHub Desktop.
template<class T>
void SendPackMsg()
{
if constexpr(is_sixup<T>::value) {
std::cout << "a" << std::endl;
} else {
std::cout << "b" << std::endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment