Skip to content

Commit

Permalink
Add explicit operator std::string for glz::async_string
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jan 2, 2025
1 parent d62e505 commit c7870d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/glaze/thread/async_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ namespace glz
str = sv;
return *this;
}

explicit operator std::string() const {
return str;
}

struct proxy
{
Expand Down

0 comments on commit c7870d7

Please sign in to comment.