瀏覽代碼

Fix deprecated names from ranges-v3

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
8764e03b77
共有 4 個檔案被更改,包括 6 行新增6 行删除
  1. +3
    -3
      src/dds/build.cpp
  2. +1
    -1
      src/dds/project.cpp
  3. +1
    -1
      src/dds/sdist.cpp
  4. +1
    -1
      src/dds/source.cpp

+ 3
- 3
src/dds/build.cpp 查看文件

@@ -31,7 +31,7 @@
using namespace dds;

using namespace ranges;
using namespace ranges::view;
using namespace ranges::views;

namespace {

@@ -417,13 +417,13 @@ void dds::build(const build_params& params, const package_manifest&) {

dds::execute_all(compiles, params.toolchain, params.parallel_jobs);

using namespace ranges::view;
using namespace ranges::views;

auto link_res = link_project(params, project, compiles);

auto all_tests = link_res //
| transform(DDS_TL(_1.test_exes)) //
| action::join;
| ranges::actions::join;

int n_test_fails = 0;
for (path_ref test_exe : all_tests) {

+ 1
- 1
src/dds/project.cpp 查看文件

@@ -17,7 +17,7 @@ std::vector<library> collect_submodules(path_ref pf_libs_dir) {
if (!fs::exists(pf_libs_dir)) {
return {};
}
using namespace ranges::view;
using namespace ranges::views;
return fs::directory_iterator(pf_libs_dir) //
| filter(has_library_dirs) //
| transform(DDS_TL(library::from_directory(_1))) //

+ 1
- 1
src/dds/sdist.cpp 查看文件

@@ -47,7 +47,7 @@ void sdist_copy_library(path_ref out_root,
browns::md5& hash) {
auto sources_to_keep = //
lib.sources() //
| ranges::view::filter([&](const source_file& sf) {
| ranges::views::filter([&](const source_file& sf) {
if (sf.kind == source_kind::app && params.include_apps) {
return true;
}

+ 1
- 1
src/dds/source.cpp 查看文件

@@ -69,7 +69,7 @@ std::optional<source_file> source_file::from_path(path_ref path) noexcept {
}

source_list source_file::collect_for_dir(path_ref src) {
using namespace ranges::view;
using namespace ranges::views;
// Strips nullopt elements and lifts the value from the results
auto drop_nulls = //
filter(DDS_TL(_1.has_value())) //

Loading…
取消
儲存