From 76549f1c347b95b5ac00b317209a13d93f7cf1b1 Mon Sep 17 00:00:00 2001 From: James Yang Date: Tue, 21 Apr 2020 21:43:14 -0400 Subject: [PATCH] Fix build issue with invalid_tag --- include/autoppl/util/concept.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/autoppl/util/concept.hpp b/include/autoppl/util/concept.hpp index c17bcfac..ba4d0af7 100644 --- a/include/autoppl/util/concept.hpp +++ b/include/autoppl/util/concept.hpp @@ -192,10 +192,18 @@ namespace ppl { namespace util { /* - * The type invalid_tag is left undefined and hence is an incomplete type. - * It is used as a "black hole" for when a condition is not met, but cannot set compiler error. + * The type invalid_tag is used as a "black hole" + * for when a condition is not met, but cannot set compiler error. */ -struct invalid_tag; +struct invalid_tag +{ + invalid_tag() =delete; + ~invalid_tag() =delete; + invalid_tag(const invalid_tag&) =delete; + invalid_tag& operator=(const invalid_tag&) =delete; + invalid_tag(invalid_tag&&) =delete; + invalid_tag& operator=(invalid_tag&&) =delete; +}; DEFINE_HAS_TYPE(value_t); DEFINE_HAS_TYPE(pointer_t);