fktn-k / fkYAML

A C++ header-only YAML library
MIT License
69 stars 7 forks source link

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

Closed fktn-k closed 11 months ago

fktn-k commented 11 months ago

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.

coveralls commented 11 months ago

Coverage Status

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