Created
December 16, 2017 06:47
-
-
Save phrz/7c36955dce2d501561c1ea3e8e047295 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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