Last active
March 26, 2017 18:41
-
-
Save stryku/dfbd8f7a86d73ba34a4ea0741c29c274 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 <int value> | |
struct prepare_sign_and_convert | |
{ | |
using type = typename std::conditional_t< | |
value < 0, | |
string_from_int_impl<value * -1, string<'-'>>, | |
string_from_int_impl<value, string<>> | |
>::type; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment