Skip to content

Commit

Permalink
Merge pull request #9960 from psakievich/cpp17
Browse files Browse the repository at this point in the history
MueLu, Tpetra, SEACAS: Cpp17 Fixes
  • Loading branch information
cgcgcg authored Nov 22, 2021
2 parents 4870ce1 + 92c5ac1 commit 04cc1ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ namespace MueLu {

// trim from start
static inline std::string &ltrim(std::string &s) {
s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c){return !std::isspace(c);}));
return s;
}

// trim from end
static inline std::string &rtrim(std::string &s) {
s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
s.erase(std::find_if(s.rbegin(), s.rend(), [](int c){return !std::isspace(c);}).base(), s.end());
return s;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/seacas/applications/ejoin/EJ_SystemInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class SystemInterface
bool zlib_{true};
bool szip_{false};

std::string blockPrefix_{std::string("p")};
std::string blockPrefix_{"p"};

vector3d offset_;
double tolerance_{0.0};
Expand Down
2 changes: 1 addition & 1 deletion packages/tpetra/core/src/Tpetra_Import_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ namespace Tpetra {

const size_type numInvalidRemote =
std::count_if (remoteProcIDs.begin (), remoteProcIDs.end (),
std::bind1st (std::equal_to<int> (), -1));
std::bind (std::equal_to<int> (), -1, std::placeholders::_1));
TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC
(numInvalidRemote == 0, std::logic_error, "Calling getRemoteIndexList "
"on the source Map returned IDNotPresent, but none of the returned "
Expand Down

0 comments on commit 04cc1ad

Please sign in to comment.