summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/query/optimizer/algebra/operator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/query/optimizer/algebra/operator.h b/src/mongo/db/query/optimizer/algebra/operator.h
index 081fbee6d1f..aa6220b53f1 100644
--- a/src/mongo/db/query/optimizer/algebra/operator.h
+++ b/src/mongo/db/query/optimizer/algebra/operator.h
@@ -44,10 +44,11 @@ namespace algebra {
*/
template <typename T, int S>
struct OpNodeStorage {
- T _nodes[S];
-
template <typename... Ts>
OpNodeStorage(Ts&&... vals) : _nodes{std::forward<Ts>(vals)...} {}
+
+protected:
+ T _nodes[S];
};
/**