removed string from restriction

This commit is contained in:
2025-12-09 21:13:47 +01:00
parent c4f8731262
commit 9b7b74524f
13 changed files with 86 additions and 166 deletions
+3 -3
View File
@@ -5,10 +5,10 @@ object::object( std::string name, std::string alias )
: name_(std::move(name))
, alias_(std::move(alias)) {}
const attribute& object::create_attribute( std::string name, object& obj ) {
const attribute& object::create_attribute(std::string name, const std::shared_ptr<object>& obj) {
attribute attr{std::move(name)};
attr.owner_ = &obj;
return obj.attributes_.emplace_back(std::move(attr));
attr.owner_ = obj;
return obj->attributes_.emplace_back(std::move(attr));
}
// void object::add_attribute( attribute attr ) {