Merge pull request #138 from crypto-ape/issue_1769-extend_static_variant_with_is_type_method

extend static_variant with is_type() method
This commit is contained in:
Alfredo Garcia 2019-06-11 13:34:18 -03:00 committed by GitHub
commit 4cfb54fd56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -443,6 +443,9 @@ public:
}
tag_type which() const {return _tag;}
template<typename T>
bool is_type() const { return _tag == tag<T>::value; }
};
struct from_static_variant