Skip to content

Commit

Permalink
Update json.h
Browse files Browse the repository at this point in the history
  • Loading branch information
thevbw authored Dec 6, 2023
1 parent 4f3f5de commit 531c351
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/crow/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,13 @@ namespace crow
return detail::r_string{start_, end_};
}

/// Any stringstream lexical cast.
template <typename cast_t>
cast_t cast() const
{
return utility::lexical_cast<cast_t>(start_, end_ - start_);
}

/// The list or object value
std::vector<rvalue> lo()
{
Expand Down

0 comments on commit 531c351

Please sign in to comment.