Skip to content

Commit 7ae6d78

Browse files
committed
Fix warnings on gcc
1 parent 5183986 commit 7ae6d78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/args.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ void each_arg(F f, Ts&&... xs)
9999
(void)std::initializer_list<int>{((void)f(std::forward<Ts>(xs)), 0)...};
100100
}
101101

102+
template<class F>
103+
void each_arg(F) {}
104+
102105
std::vector<std::string> wrap(const std::string& text, unsigned int line_length = 72)
103106
{
104107
std::vector<std::string> output;
@@ -251,7 +254,7 @@ std::string type_to_help_impl(rank<0>)
251254
template<class T>
252255
auto type_to_help_impl(rank<1>) -> typename std::enable_if<(is_container<T>() and not std::is_convertible<T, std::string>()), std::string>::type
253256
{
254-
if (is_container<T>()) return type_to_help_impl<value_of<T>>(rank<1>{}) + "...";
257+
return type_to_help_impl<value_of<T>>(rank<1>{}) + "...";
255258
}
256259

257260
template<class T>

0 commit comments

Comments
 (0)