Removed wrong noexcept from ObjectPtr::create() function.
This commit is contained in:
parent
ddb4f67735
commit
50c6c7d6d2
@ -395,7 +395,7 @@ public:
|
||||
}
|
||||
public:
|
||||
template<typename... TArgs>
|
||||
static ObjectPtr<TConcrete> create(TArgs&&... args) noexcept;
|
||||
static ObjectPtr<TConcrete> create(TArgs&&... args);
|
||||
};
|
||||
|
||||
template<typename TConcrete, typename TBase = BaseObject, typename TOwner = TBase::owner_t>
|
||||
@ -529,7 +529,7 @@ ObjectPtr<TOtherObject> ObjectPtr<TObject>::dynamicCast() const noexcept
|
||||
|
||||
template<typename TConcrete, typename TBase, typename TOwner>
|
||||
template<typename... TArgs>
|
||||
ObjectPtr<TConcrete> Object<TConcrete, TBase, TOwner>::create(TArgs&&... args) noexcept
|
||||
ObjectPtr<TConcrete> Object<TConcrete, TBase, TOwner>::create(TArgs&&... args)
|
||||
{
|
||||
return (new TConcrete(std::forward<TArgs>(args)...))->getPointer(/* skipCheck = */ true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user