Unverified Commit 8bf4076f authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

Merge pull request #17 from DianeBury/devel

Add explicit bool cast for C++11, fix #16
parents 46c057ea b0ad0eb1
...@@ -33,7 +33,7 @@ namespace hpp ...@@ -33,7 +33,7 @@ namespace hpp
# ifdef HPP_ENABLE_ASSERTIONS # ifdef HPP_ENABLE_ASSERTIONS
# define HPP_ASSERT(CONDITION) \ # define HPP_ASSERT(CONDITION) \
do { \ do { \
bool _x = (CONDITION); \ bool _x = static_cast<bool>(CONDITION); \
if (!_x) \ if (!_x) \
HPP_THROW_EXCEPTION \ HPP_THROW_EXCEPTION \
(::hpp::AssertionError, \ (::hpp::AssertionError, \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment