diff options
author | Bernard Normier <bernard@zeroc.com> | 2019-10-29 13:54:17 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2019-10-29 13:54:17 -0400 |
commit | 79c5c93cc596c8cf3dffa88627835a320e333efa (patch) | |
tree | c930f73542a2abe0644c13302179957e4e4859fb /cpp/include | |
parent | Workaround for sporadic carthage segfault (diff) | |
download | ice-79c5c93cc596c8cf3dffa88627835a320e333efa.tar.bz2 ice-79c5c93cc596c8cf3dffa88627835a320e333efa.tar.xz ice-79c5c93cc596c8cf3dffa88627835a320e333efa.zip |
Fix clang -std=c++17 build
Note: still building Ice C++11 with -std=c++11.
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/Ice/Optional.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/Ice/Optional.h b/cpp/include/Ice/Optional.h index 059c309c39b..4c5bd85c5e3 100644 --- a/cpp/include/Ice/Optional.h +++ b/cpp/include/Ice/Optional.h @@ -210,7 +210,7 @@ template <class T> inline constexpr typename std::remove_reference<T>::type&& co #if defined NDEBUG # define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR) (EXPR) #else -# define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR) ((CHECK) ? (EXPR) : ([]{assert(!#CHECK);}(), (EXPR))) +# define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR) ((CHECK) ? (EXPR) : ([]{assert(false && #CHECK);}(), (EXPR))) #endif namespace detail_ |