diff --git a/include/matador/object/schema.hpp b/include/matador/object/schema.hpp index 5878e8a..9e4780b 100644 --- a/include/matador/object/schema.hpp +++ b/include/matador/object/schema.hpp @@ -24,7 +24,7 @@ public: explicit schema( const std::string& name = ""); template - utils::result attach(const std::string name, const std::string &parent = "") { + [[nodiscard]] utils::result attach(const std::string name, const std::string &parent = "") { auto node = schema_node::make_node(*this, name); auto result = attach_node(node, parent); @@ -36,7 +36,7 @@ public: } template - utils::result attach(const std::string name) { + [[nodiscard]] utils::result attach(const std::string name) { auto node = schema_node::make_node(*this, name); auto result = attach_node(node, std::type_index(typeid(ParentType)));