removed string from restriction
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user