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

#187 support compatible strings as an argument in basic_node ctors #188

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

fktn-k
Copy link
Owner

@fktn-k fktn-k commented Nov 1, 2023

Currently, constructing a string scalar node requires exactly the same type as basic_node::string_type as an argument type.
This restriction had been forcing users to create a lot of boilerplate codes before this PR.
To resolve the issue, this PR have supported compatible strings, e.g., character arrays or std::string_view (only with C++17 or later), as an argument of the basic_node constructor.

@fktn-k fktn-k added the improvement refactoring or optimization without public API changes label Nov 1, 2023
@fktn-k fktn-k added this to the Release v0.2.0 milestone Nov 1, 2023
@fktn-k fktn-k self-assigned this Nov 1, 2023
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same when pulling 080136f on feature/187_support_compatible_strings_in_node_ctor into 1cb0699 on develop.

@fktn-k fktn-k merged commit 5cf5bfc into develop Nov 1, 2023
104 checks passed
@fktn-k fktn-k deleted the feature/187_support_compatible_strings_in_node_ctor branch November 1, 2023 15:03
@fktn-k fktn-k restored the feature/187_support_compatible_strings_in_node_ctor branch November 1, 2023 15:03
@fktn-k fktn-k deleted the feature/187_support_compatible_strings_in_node_ctor branch November 1, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement refactoring or optimization without public API changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants