#include <iostream>
#include <string>

using namespace std;

template <typename T, typename... Args>
void foo(const T &t, const Args& ... rest) {
    cout << sizeof...(Args) << endl;
    cout << sizeof...(rest) << endl;
}

int main() {
    int i = 0;
    double d = 3.14;
    string s = "how now brown cow";
    foo(i, s, 42, d);
    foo(s, 42, "hi");
    foo(d, s);
    foo("hi");

    return 0;
}

Add solution for chapter 16 test 51
Add solution for chapter 16 test 51