Skip to content

Instantly share code, notes, and snippets.

@stryku
Created February 23, 2017 21:16
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 stryku/4ea33bbe3ddf5d3f994efc00c131be69 to your computer and use it in GitHub Desktop.
Save stryku/4ea33bbe3ddf5d3f994efc00c131be69 to your computer and use it in GitHub Desktop.
namespace details
{
template <typename str>
struct to_string_impl;
template <char ...chars>
struct to_string_impl<string<chars...>>
{
using type = string<chars...>;
};
}
template <typename s>
using to_string = typename details::to_string_impl<s>::type;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment