Skip to content

Commit

Permalink
Fix build issue with invalid_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesYang007 committed Apr 22, 2020
1 parent 894fa88 commit 76549f1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions include/autoppl/util/concept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 76549f1

Please sign in to comment.