mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
irr_ptr: Allow to use with forward-declared types
Also add [[nodiscard]] to ::grab() (because similar named irr_ptr::grab() returns void). And use new std::is_convertible_v.
This commit is contained in:
parent
70e169f165
commit
6d01ed5d74
2 changed files with 17 additions and 14 deletions
|
@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "exceptions.h"
|
||||
#include "irr_ptr.h"
|
||||
#include "IReferenceCounted.h"
|
||||
|
||||
class TestIrrPtr : public TestBase
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue