diff options
author | Benety Goh <benety@mongodb.com> | 2021-08-19 05:30:09 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-19 09:55:11 +0000 |
commit | b34cdd55029c517c9ac28a091f5765c3f490171f (patch) | |
tree | 61b644589f7410456d380fbd391cbb31beafd9e7 /src/mongo/db/pipeline/document_source_densify.h | |
parent | b23564269ed52daf652e92169babedfb3a49254b (diff) | |
download | mongo-b34cdd55029c517c9ac28a091f5765c3f490171f.tar.gz |
SERVER-57334 fix mac os x compile
Diffstat (limited to 'src/mongo/db/pipeline/document_source_densify.h')
-rw-r--r-- | src/mongo/db/pipeline/document_source_densify.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mongo/db/pipeline/document_source_densify.h b/src/mongo/db/pipeline/document_source_densify.h index e10a91ca71c..df0f4d0edd3 100644 --- a/src/mongo/db/pipeline/document_source_densify.h +++ b/src/mongo/db/pipeline/document_source_densify.h @@ -76,14 +76,15 @@ public: MutableDocument spec; spec[kArgStep] = _step; spec[kArgBounds] = stdx::visit( - visit_helper::Overloaded{[&](Full full) { return Value(kValFull); }, - [&](Partition partition) { return Value(kValPartition); }, - [&](std::pair<Date_t, Date_t> dates) { - return Value({Value(dates.first), Value(dates.second)}); - }, - [&](std::pair<Value, Value> vals) { - return Value({vals.first, vals.second}); - }}, + visit_helper::Overloaded{ + [&](Full full) { return Value(kValFull); }, + [&](Partition partition) { return Value(kValPartition); }, + [&](std::pair<Date_t, Date_t> dates) { + return Value(std::vector<Value>({Value(dates.first), Value(dates.second)})); + }, + [&](std::pair<Value, Value> vals) { + return Value(std::vector<Value>({vals.first, vals.second})); + }}, _bounds); if (_unit) spec[kArgUnit] = Value(serializeTimeUnit(*_unit)); |