diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:57:33 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-03-16 00:57:33 +0000 |
commit | 741a2f0638761d3058f8094f591fdc3c56c9ebf3 (patch) | |
tree | 4dedc0be70f8aa22f50158a4ecc36307376cbbf4 /lib/collection.hpp | |
parent | Create GameState, the single global for the root of everything (diff) | |
download | ilt-741a2f0638761d3058f8094f591fdc3c56c9ebf3.tar.bz2 ilt-741a2f0638761d3058f8094f591fdc3c56c9ebf3.tar.xz ilt-741a2f0638761d3058f8094f591fdc3c56c9ebf3.zip |
Add requires on factory like functions
Diffstat (limited to 'lib/collection.hpp')
-rw-r--r-- | lib/collection.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/collection.hpp b/lib/collection.hpp index 1630fcc..cf51157 100644 --- a/lib/collection.hpp +++ b/lib/collection.hpp @@ -15,7 +15,7 @@ public: template<typename T = Object, typename... Params> auto - create(Params &&... params) + create(Params &&... params) requires std::is_base_of_v<Object, T> { if constexpr (shared) { auto obj = std::make_shared<T>(std::forward<Params>(params)...); |