From f7b2f34053c4d8395f77d98410ec780e6905a7d1 Mon Sep 17 00:00:00 2001 From: Bela Schaum Date: Sun, 13 Nov 2022 18:01:31 +0100 Subject: [PATCH] Fix https://github.com/Neargye/nameof/issues/46 (#48) --- include/nameof.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/nameof.hpp b/include/nameof.hpp index 057981d..7382cf6 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -973,6 +973,7 @@ From get_base_type(Type From::*); template union union_type { + constexpr ~union_type() {} char c = {}; T f; };