summaryrefslogtreecommitdiffstats
path: root/src/count.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/count.hpp')
-rw-r--r--src/count.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/count.hpp b/src/count.hpp
index 0da0324..9f0ce3e 100644
--- a/src/count.hpp
+++ b/src/count.hpp
@@ -64,18 +64,19 @@ class CountCondition : public IndexedConditional
{
//Get the property value from storage[0],
//and save the op result in storage[1].
- const auto& storage = std::get<2>(
+ const auto& storage = std::get<storageIndex>(
item.second);
// Don't count properties that don't exist.
- if (std::get<0>(storage.get()).empty())
+ if (std::get<valueIndex>(
+ storage.get()).empty())
{
return false;
}
const auto& value = any_ns::any_cast<T>(
- std::get<0>(storage.get()));
+ std::get<valueIndex>(storage.get()));
auto r = propertyOp(value);
- std::get<1>(storage.get()) = r;
+ std::get<resultIndex>(storage.get()) = r;
return r;
});
OpenPOWER on IntegriCloud