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:
commit
4cfb54fd56
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue