We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
times.hpp
1 parent d30e388 commit 719aac5Copy full SHA for 719aac5
times.hpp
@@ -5,16 +5,6 @@
5
6
namespace mlib
7
{
8
- // this allows no recursion
9
- struct callable_wrapper
10
- {
11
- constexpr callable_wrapper() {}
12
-
13
- constexpr auto operator()(auto callable, std::size_t index)
14
15
- callable();
16
- }
17
- };
18
19
template<auto T>
20
struct times
@@ -23,7 +13,7 @@ namespace mlib
23
24
[&] <std::size_t... indexes>(std::index_sequence<indexes...>)
25
26
- (callable_wrapper{}(callable, indexes), ...);
+ (callable, void(indexes), ...);
27
}(std::make_index_sequence<T>{});
28
}
29
};
0 commit comments