Commit 71367eeb authored by Dominik Charousset's avatar Dominik Charousset

new convenience function: any_tuple::types_match

parent dd8bc240
...@@ -197,7 +197,7 @@ class any_tuple { ...@@ -197,7 +197,7 @@ class any_tuple {
template<class StaticTypeArray> template<class StaticTypeArray>
bool types_match(StaticTypeArray& arr) { bool types_match(StaticTypeArray& arr) {
if (size() == StaticTypeArray::size) { if (size() == StaticTypeArray::size) {
for (size_t i = 0; i < StaticTypeArray; ++i) { for (size_t i = 0; i < StaticTypeArray::size; ++i) {
if (type_at(i) != arr[i]) { if (type_at(i) != arr[i]) {
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment