mirror of
https://github.com/boostorg/parser.git
synced 2026-01-27 07:02:12 +00:00
boost::optional -> std::optional
This commit is contained in:
@@ -8,7 +8,7 @@ int main()
|
||||
if (str.empty())
|
||||
break;
|
||||
|
||||
boost::optional<boost::json::value> value;
|
||||
std::optional<boost::json::value> value;
|
||||
if ((value = boost::json::parse(
|
||||
str, [](std::string const & msg) { std::cout << msg; }))) {
|
||||
std::cout << "Parsed value:\n";
|
||||
|
||||
Reference in New Issue
Block a user