From f29248d139dbb18d534bb846c5055b7a58c78c37 Mon Sep 17 00:00:00 2001 From: crypto-ape <43807588+crypto-ape@users.noreply.github.com> Date: Tue, 11 Jun 2019 18:00:01 +0200 Subject: [PATCH] extend static_variant with is_type() method --- include/fc/static_variant.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/fc/static_variant.hpp b/include/fc/static_variant.hpp index 4a440a2..070fadd 100644 --- a/include/fc/static_variant.hpp +++ b/include/fc/static_variant.hpp @@ -443,6 +443,9 @@ public: } tag_type which() const {return _tag;} + + template + bool is_type() const { return _tag == tag::value; } }; struct from_static_variant