From 6cac76e2103271b578cd8db08a8d7b297373794e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 7 Apr 2021 12:53:49 +1000 Subject: [PATCH] types/description: make_description should be constexpr This would be possible in the general case, but is fine for fundamental types. --- test/introspection.cpp | 1 + types/description.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/test/introspection.cpp b/test/introspection.cpp index 07e1bb31..f56cd0c7 100644 --- a/test/introspection.cpp +++ b/test/introspection.cpp @@ -1,3 +1,4 @@ + #include "introspection/name.hpp" #include "introspection/type.hpp" #include "std.hpp" diff --git a/types/description.hpp b/types/description.hpp index 4fbc8a8c..19ae5c1b 100644 --- a/types/description.hpp +++ b/types/description.hpp @@ -249,6 +249,7 @@ namespace cruft::types { //------------------------------------------------------------------------- template + constexpr description make_description (void) noexcept {