Skip to content

Instantly share code, notes, and snippets.

@phrz
Created December 16, 2017 06:47
Show Gist options
  • Select an option

  • Save phrz/7c36955dce2d501561c1ea3e8e047295 to your computer and use it in GitHub Desktop.

Select an option

Save phrz/7c36955dce2d501561c1ea3e8e047295 to your computer and use it in GitHub Desktop.
template<
typename... T,
typename std::enable_if<std::is_same<T&&..., Point>::value>::type
>
Point addPoints(T&&... points) {
// all arguments are guaranteed to be type Point
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment