| 3 | public: |
| 4 | template <int N, int ... Rest> |
| 5 | int sum(){ |
| 6 | if constexpr(sizeof...(Rest) > 0) { |
| 7 | return N + sum<Rest...>(); |
| 8 | } else { |
| 9 | return N; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | |
| 14 | template<typename I, typename ... Rest> |
nothing calls this directly
no outgoing calls
no test coverage detected