Commit e1df88af authored by Xiao Shi's avatar Xiao Shi Committed by Facebook Github Bot

EASY: fix small bug in fallback F14 visitAllocationClasses

Summary: When vector intrinsics are not available, `visitAllocationClasses` fails to compile as it is a member function of a template class and it invokes a member function of a template base class without explicit `this->`.

Reviewed By: yfeldblum, nbronson

Differential Revision: D8300168

fbshipit-source-id: 1c1619bd1c864535648e531b218d2cf1ffef767b
parent 1bc8c91c
......@@ -71,7 +71,8 @@ class F14BasicMap : public std::unordered_map<K, M, H, E, A> {
if (bc > 1) {
visitor(bc * sizeof(typename Super::pointer), 1);
}
visitor(size(), sizeof(StdNodeReplica<K, typename Super::value_type, H>));
visitor(
this->size(), sizeof(StdNodeReplica<K, typename Super::value_type, H>));
}
};
} // namespace detail
......
......@@ -67,7 +67,8 @@ class F14BasicSet : public std::unordered_set<K, H, E, A> {
if (bc > 1) {
visitor(bc * sizeof(typename Super::pointer), 1);
}
visitor(size(), sizeof(StdNodeReplica<K, typename Super::value_type, H>));
visitor(
this->size(), sizeof(StdNodeReplica<K, typename Super::value_type, H>));
}
};
} // namespace detail
......
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