Browse Source

test: shared non default constructible type

Michele Caini 2 years ago
parent
commit
ad99c4eb14
1 changed files with 19 additions and 0 deletions
  1. 19 0
      test/entt/common/non_default_constructible.h

+ 19 - 0
test/entt/common/non_default_constructible.h

@@ -0,0 +1,19 @@
+#ifndef ENTT_COMMON_NON_DEFAULT_CONSTRUCTIBLE_HPP
+#define ENTT_COMMON_NON_DEFAULT_CONSTRUCTIBLE_HPP
+
+#include <type_traits>
+
+namespace test {
+
+struct non_default_constructible {
+    non_default_constructible() = delete;
+
+    non_default_constructible(int v)
+        : value{v} {}
+
+    int value;
+};
+
+} // namespace test
+
+#endif