Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define to_string for safe integers #119

Open
Eelis opened this issue Nov 29, 2021 · 0 comments
Open

Define to_string for safe integers #119

Eelis opened this issue Nov 29, 2021 · 0 comments

Comments

@Eelis
Copy link
Contributor

Eelis commented Nov 29, 2021

Because it would be convenient if code like the following worked generically for both regular ints and safe ints:

template<typename I>
std::string f(I i)
{
    using std::to_string;
    return to_string(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant