Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-util
Commits
8bf4076f
Unverified
Commit
8bf4076f
authored
Apr 06, 2020
by
Joseph Mirabel
Committed by
GitHub
Apr 06, 2020
Browse files
Merge pull request #17 from DianeBury/devel
Add explicit bool cast for C++11, fix #16
parents
46c057ea
b0ad0eb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/util/assertion.hh
View file @
8bf4076f
...
...
@@ -33,7 +33,7 @@ namespace hpp
# ifdef HPP_ENABLE_ASSERTIONS
# define HPP_ASSERT(CONDITION) \
do { \
bool _x = (CONDITION); \
bool _x =
static_cast<bool>
(CONDITION); \
if (!_x) \
HPP_THROW_EXCEPTION \
(::hpp::AssertionError, \
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment