From fa611574101cd657a0716aaf2028b5bc852d4a8a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Dec 2022 01:19:10 -0500 Subject: Use std::optional --- include/ingen/Parser.hpp | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'include/ingen/Parser.hpp') diff --git a/include/ingen/Parser.hpp b/include/ingen/Parser.hpp index 485a5fa8..16ee4070 100644 --- a/include/ingen/Parser.hpp +++ b/include/ingen/Parser.hpp @@ -24,8 +24,7 @@ #include "raul/Path.hpp" // IWYU pragma: keep #include "raul/Symbol.hpp" // IWYU pragma: keep -#include - +#include #include #include #include @@ -80,21 +79,21 @@ public: * @return whether or not load was successful. */ virtual bool parse_file( - World& world, - Interface& target, - const FilePath& path, - const boost::optional& parent = boost::optional(), - const boost::optional& symbol = boost::optional(), - const boost::optional& data = boost::optional()); - - virtual boost::optional parse_string( - World& world, - Interface& target, - const std::string& str, - const URI& base_uri, - const boost::optional& parent = boost::optional(), - const boost::optional& symbol = boost::optional(), - const boost::optional& data = boost::optional()); + World& world, + Interface& target, + const FilePath& path, + const std::optional& parent = std::optional(), + const std::optional& symbol = std::optional(), + const std::optional& data = std::optional()); + + virtual std::optional parse_string( + World& world, + Interface& target, + const std::string& str, + const URI& base_uri, + const std::optional& parent = std::optional(), + const std::optional& symbol = std::optional(), + const std::optional& data = std::optional()); }; } // namespace ingen -- cgit v1.2.1