]> git.tdb.fi Git - libs/game.git/commitdiff
Make Owned friendly to other template specializations
authorMikko Rasa <tdb@tdb.fi>
Sun, 7 May 2023 17:34:26 +0000 (20:34 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 7 May 2023 17:34:26 +0000 (20:34 +0300)
source/game/owned.h

index a30f040d58269019cd3634159100e7d2f8a976c3..d6e4348fdd45b43c65e460182f7de839b01b16a8 100644 (file)
@@ -15,6 +15,9 @@ class Entity;
 template<typename T>
 class Owned: public Handle<T>
 {
+       template<typename U>
+       friend class Owned;
+
 public:
        Owned() = default;