stephenberry / glaze

Extremely fast, in memory, JSON and interface library for modern C++
MIT License
1.23k stars 123 forks source link

add assignment operator for std::string_view to glz::json_t #1411

Closed scalpel4k closed 3 weeks ago

scalpel4k commented 3 weeks ago

It would be neat if one could directly assign std::string_view to glz::json_t. It saves a few key strokes compared to making the copy outside ...

thx

stephenberry commented 3 weeks ago

Good suggestion. I'll plan to add this soon.

stephenberry commented 3 weeks ago

Support has been added into main to construct and assign from std::string_view. Will be included with the next release.