Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Zhe-xuan Yang
    @zhexuany
    // Template-template argument must
    // be a class; cannot use typename:
    template<typename T, template<typename> class C>
    void print2(C<T>& c) {
    copy(c.begin(), c.end(),
    ostream_iterator<T>(cout, " "));
    cout << endl;
    }

    `// Template-template argument must
    // be a class; cannot use typename:
    template<typename T, template<typename> class C>
    void print2(C<T>& c) {
    copy(c.begin(), c.end(),
    ostream_iterator<T>(cout, " "));
    cout << endl;
    }

    `

    is this template correct?
    It can't compile in my Mac