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

doctest::String ctor with non-zero terminated string #165

Closed
Leandros opened this issue Nov 29, 2018 · 2 comments
Closed

doctest::String ctor with non-zero terminated string #165

Leandros opened this issue Nov 29, 2018 · 2 comments

Comments

@Leandros
Copy link

Constructing a doctest::String from a StringView requires copying the result into a temp buffer first, before copying into a doctest::String.
std::string, for example, has a constructor which takes a char const * and size_t.

@onqtam
Copy link
Member

onqtam commented Nov 29, 2018

I'll add such a constructor pretty soon :)

@Leandros
Copy link
Author

Thanks!

@onqtam onqtam closed this as completed in 55d9f05 Nov 30, 2018
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

2 participants