Skip to content
Snippets Groups Projects
Commit e7a252b3 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'issue/rel-with-deb-info-warnings' into 'develop'

Fix compilation warnings when building type is RelWithDebInfo

See merge request !65
parents 06dc035e c1e36b91
No related branches found
No related tags found
1 merge request!65Fix compilation warnings when building type is RelWithDebInfo
...@@ -108,9 +108,8 @@ struct AssertChecker<std::tuple<Args...> > ...@@ -108,9 +108,8 @@ struct AssertChecker<std::tuple<Args...> >
AssertChecker<TupleArgs>::check_args_type(); \ AssertChecker<TupleArgs>::check_args_type(); \
constexpr int tuple_size = std::tuple_size_v<TupleArgs>; \ constexpr int tuple_size = std::tuple_size_v<TupleArgs>; \
static_assert(tuple_size >= 1 and tuple_size <= 2); \ static_assert(tuple_size >= 1 and tuple_size <= 2); \
auto args = std::forward_as_tuple(__VA_ARGS__); \ if (not static_cast<bool>(std::get<0>(std::forward_as_tuple(__VA_ARGS__)))) { \
if (not static_cast<bool>(std::get<0>(args))) { \ throw AssertError(__FILE__, __LINE__, __PRETTY_FUNCTION__, std::forward_as_tuple(__VA_ARGS__), #__VA_ARGS__); \
throw AssertError(__FILE__, __LINE__, __PRETTY_FUNCTION__, args, #__VA_ARGS__); \
} \ } \
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment