Skip to content

Instantly share code, notes, and snippets.

@stryku
Last active March 26, 2017 18:41
Show Gist options
  • Save stryku/dfbd8f7a86d73ba34a4ea0741c29c274 to your computer and use it in GitHub Desktop.
Save stryku/dfbd8f7a86d73ba34a4ea0741c29c274 to your computer and use it in GitHub Desktop.
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