Skip to content

Commit

Permalink
Merge pull request #165 from LLNL/feature/nselliott/ends
Browse files Browse the repository at this point in the history
Remove deprecated std::ends from Utilities macros.
  • Loading branch information
nselliott authored Feb 1, 2021
2 parents 5ee4244 + 446e2ff commit 86a1c76
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/SAMRAI/tbox/Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ typedef int mode_t;
#define TBOX_ERROR(X) \
do { \
std::ostringstream tboxos; \
tboxos << X << std::ends; \
tboxos << X; \
SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \
} while (0)

Expand All @@ -74,7 +74,7 @@ typedef int mode_t;
#define TBOX_WARNING(X) \
do { \
std::ostringstream tboxos; \
tboxos << X << std::ends; \
tboxos << X; \
SAMRAI::tbox::Logger::getInstance()->logWarning( \
tboxos.str(), __FILE__, __LINE__); \
} while (0)
Expand All @@ -85,7 +85,7 @@ typedef int mode_t;
#define TBOX_DEBUG(X) \
do { \
std::ostringstream tboxos; \
tboxos << X << std::ends; \
tboxos << X; \
SAMRAI::tbox::Logger::getInstance()->logDebug( \
tboxos.str(), __FILE__, __LINE__); \
} while (0)
Expand All @@ -102,7 +102,7 @@ typedef int mode_t;
do { \
if (!(EXP)) { \
std::ostringstream tboxos; \
tboxos << "Failed assertion: " << # EXP << std::ends; \
tboxos << "Failed assertion: " << # EXP; \
SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \
} \
} while (0)
Expand All @@ -128,7 +128,7 @@ typedef int mode_t;
do { \
if (!(EXP)) { \
std::ostringstream tboxos; \
tboxos << "Failed assertion: " << # EXP << std::endl << # MSG << std::ends; \
tboxos << "Failed assertion: " << # EXP << std::endl << # MSG; \
SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \
} \
} while (0)
Expand Down Expand Up @@ -170,7 +170,7 @@ typedef int mode_t;
do { \
if (!(EXP)) { \
std::ostringstream tboxos; \
tboxos << "Failed assertion: " << # EXP << std::ends; \
tboxos << "Failed assertion: " << # EXP; \
SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \
} \
} while (0)
Expand Down Expand Up @@ -329,7 +329,7 @@ typedef int mode_t;
do { \
if (!(EXP)) { \
std::ostringstream tboxos; \
tboxos << "Failed dimension assertion: " << # EXP << std::ends; \
tboxos << "Failed dimension assertion: " << # EXP; \
SAMRAI::tbox::Utilities::abort(tboxos.str(), __FILE__, __LINE__); \
} \
} while (0)
Expand Down

0 comments on commit 86a1c76

Please sign in to comment.