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

Support string_view parameters #37

Merged
merged 5 commits into from
Jun 14, 2021

Conversation

tusharpm
Copy link
Contributor

@tusharpm tusharpm commented May 16, 2021

Fixes #20.
Fixes #25.

  • uuid::is_valid_uuid
  • uuid::from_string
  • uuid_name_generator::operator()

Add string_view test cases for each.
Add compile-time tests for constexpr constructor and from_string.

Note API breaking change: explicit template parameters need to be changed for these functions. Eg. uuid::is_valid_uuid<char>("{}") needs to be updated to uuid::is_valid_uuid<char const *>("{}") or simply deduced uuid::is_valid_uuid("{}").

@tusharpm
Copy link
Contributor Author

@mariusbancila, I have also pushed a fix for the breaking TravisCI build and some constexpr tests.
Please let me know if I should create separate pull requests for those.

@mariusbancila mariusbancila merged commit 500cd57 into mariusbancila:master Jun 14, 2021
@tusharpm tusharpm deleted the string_view branch June 14, 2021 15:11
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

Successfully merging this pull request may close these issues.

constexpr construction from_string should be taking string_view
2 participants