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

Fix compilation warnings when building type is RelWithDebInfo

parent 06dc035e
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...> >
AssertChecker<TupleArgs>::check_args_type(); \
constexpr int tuple_size = std::tuple_size_v<TupleArgs>; \
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>(args))) { \
throw AssertError(__FILE__, __LINE__, __PRETTY_FUNCTION__, args, #__VA_ARGS__); \
if (not static_cast<bool>(std::get<0>(std::forward_as_tuple(__VA_ARGS__)))) { \
throw AssertError(__FILE__, __LINE__, __PRETTY_FUNCTION__, std::forward_as_tuple(__VA_ARGS__), #__VA_ARGS__); \
} \
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment