From 2e54950b1ae08c542e5a199ace5b3d5f5d0cfc87 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 6 Oct 2016 16:41:18 +1100 Subject: [PATCH] strongdef: delete default constructor generally we use this for identifiers, and allowing the user to express arbitrary values from default construction isn't a great idea. --- strongdef.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strongdef.hpp b/strongdef.hpp index 5c9d50a8..3ae136e4 100644 --- a/strongdef.hpp +++ b/strongdef.hpp @@ -29,7 +29,7 @@ namespace util { using value_type = T; using tag_type = Tag; - constexpr strongdef () = default; + constexpr strongdef () = delete; constexpr explicit strongdef (const T &_data): data (_data) { ; } constexpr strongdef (const strongdef &rhs): data (rhs.data) { ; }