Skip to content

Commit

Permalink
fix compile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hnwyllmm committed Nov 19, 2024
1 parent 0936d27 commit 4ad7c20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/common/lang/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ See the Mulan PSL v2 for more details. */

#pragma once

#include <algorithm>
#include <ranges>

namespace ranges = std::ranges;
3 changes: 2 additions & 1 deletion src/observer/sql/operator/group_by_physical_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ See the Mulan PSL v2 for more details. */
//

#include "common/log/log.h"
#include "common/lang/ranges.h"
#include "sql/operator/group_by_physical_operator.h"
#include "sql/expr/expression_tuple.h"
#include "sql/expr/composite_tuple.h"
Expand All @@ -36,7 +37,7 @@ void GroupByPhysicalOperator::create_aggregator_list(AggregatorList &aggregator_
{
aggregator_list.clear();
aggregator_list.reserve(aggregate_expressions_.size());
ranges::for_each(aggregate_expressions_, [&aggregator_list](Expression *expr) {
std::ranges::for_each(aggregate_expressions_, [&aggregator_list](Expression *expr) {
auto *aggregate_expr = static_cast<AggregateExpr *>(expr);
aggregator_list.emplace_back(aggregate_expr->create_aggregator());
});
Expand Down
3 changes: 1 addition & 2 deletions src/observer/storage/common/meta_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ See the Mulan PSL v2 for more details. */
//

#include "storage/common/meta_util.h"

using namespace std;
#include "common/lang/filesystem.h"

string db_meta_file(const char *base_dir, const char *db_name)
{
Expand Down
Binary file removed src/observer/storage/index/.bplus_tree.h.swp
Binary file not shown.

0 comments on commit 4ad7c20

Please sign in to comment.