Skip to content

Commit 5bf7212

Browse files
authored
Merge pull request #144 from NWChemEx/utility_fix
added missing "#include <utility>"" statements for "std::as_const"
2 parents 02dfebe + d040ed0 commit 5bf7212

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
# These are directories used by IDEs for storing settings
2121
.idea/
2222
.vscode/
23+
.cache/
2324

2425
# These are common Python virtual enviornment directory names
2526
venv/

include/parallelzone/mpi_helpers/binary_buffer/detail_/binary_buffer_pimpl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <cstddef>
1919
#include <memory>
2020
#include <string>
21+
#include <utility>
2122

2223
namespace parallelzone::mpi_helpers::detail_ {
2324

tests/cxx/unit_tests/parallelzone/task/argument_wrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "../catch.hpp"
1818
#include <iostream>
1919
#include <parallelzone/task/argument_wrapper.hpp>
20+
#include <utility>
2021
#include <vector>
2122

2223
using namespace parallelzone::task;
@@ -119,4 +120,4 @@ TEST_CASE("ArgumentWrapper<T>") {
119120
REQUIRE(std::as_const(by_rref).value().data() == pvalue);
120121
}
121122
}
122-
}
123+
}

tests/cxx/unit_tests/parallelzone/task/detail_/task_wrapper_.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "../../catch.hpp"
1818
#include <iostream>
1919
#include <parallelzone/task/detail_/task_wrapper_.hpp>
20+
#include <utility>
2021
#include <vector>
2122

2223
using namespace parallelzone::task;
@@ -254,4 +255,4 @@ TEST_CASE("make_outer_lambda_") {
254255
auto lambda2 = detail_::make_outer_lambda_(lambda, std::move(a_vector));
255256
REQUIRE(std::any_cast<vector_type&&>(lambda2()).data() == pa_vector);
256257
}
257-
}
258+
}

0 commit comments

Comments
 (0)