2
0
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:
Zach Laine
2019-10-30 20:24:30 -05:00
parent f3c33af01b
commit f802b967da
11 changed files with 308 additions and 261 deletions

View File

@@ -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";