Bladeren bron

Fix deprecated names from ranges-v3

default_compile_flags
vector-of-bool 5 jaren geleden
bovenliggende
commit
8764e03b77
4 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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())) //

Laden…
Annuleren
Opslaan