forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STYLE: Remove
ITK_X_ASSERT
, just use assert
in constexpr
functions
From C++14, the standard `assert` supports being called directly from inside a `constexpr` function, as was already mentioned in Andrzej's C++ blog entry https://akrzemi1.wordpress.com/2017/05/18/asserts-in-constexpr-functions The `ITK_X_ASSERT` workaround for GCC 4 is no longer needed, as ITK now requires at least GCC 7 (and also at least C++17). This reverts commit 9ff8f9f "COMP: Fix C++11 compatibility with assert in constexpr" by Bradley Lowekamp, June 25, 2018.
- Loading branch information
Showing
2 changed files
with
8 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters