diff options
author | David Robillard <d@drobilla.net> | 2022-12-13 01:19:10 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-14 18:04:27 -0500 |
commit | fa611574101cd657a0716aaf2028b5bc852d4a8a (patch) | |
tree | 7fce4411abeaa06a5eb33ebcb13c317743d4cada /include/ingen/AtomReader.hpp | |
parent | 4b56cdf7a925dafd5e4ac085874d2afe294ec456 (diff) | |
download | ingen-fa611574101cd657a0716aaf2028b5bc852d4a8a.tar.gz ingen-fa611574101cd657a0716aaf2028b5bc852d4a8a.tar.bz2 ingen-fa611574101cd657a0716aaf2028b5bc852d4a8a.zip |
Use std::optional
Diffstat (limited to 'include/ingen/AtomReader.hpp')
-rw-r--r-- | include/ingen/AtomReader.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/ingen/AtomReader.hpp b/include/ingen/AtomReader.hpp index c83e7e4a..6e5d83fd 100644 --- a/include/ingen/AtomReader.hpp +++ b/include/ingen/AtomReader.hpp @@ -22,9 +22,8 @@ #include "ingen/ingen.h" #include "lv2/atom/atom.h" -#include <boost/optional/optional.hpp> - #include <cstdint> +#include <optional> namespace raul { class Path; @@ -58,9 +57,9 @@ public: private: void get_atom(const LV2_Atom* in, Atom& out); - boost::optional<URI> atom_to_uri(const LV2_Atom* atom); - boost::optional<raul::Path> atom_to_path(const LV2_Atom* atom); - Resource::Graph atom_to_context(const LV2_Atom* atom); + std::optional<URI> atom_to_uri(const LV2_Atom* atom); + std::optional<raul::Path> atom_to_path(const LV2_Atom* atom); + Resource::Graph atom_to_context(const LV2_Atom* atom); void get_props(const LV2_Atom_Object* obj, ingen::Properties& props); |