---------------
Christof.Meerwald@ freec++.prog

home
> prog
>> freecpp
>>> namespace template func

translate to German (by SYSTRAN)

Namespaced Template Function

> namespace_template_func.cpp:

namespace N
{
  template<class T> void f(T a)
  { }

  template<class T> void g(T a)
  {
    f(a);
  }
}


int main(int argc, char *argv[])
{
  N::g(3);

  return 0;
}
---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.2, cmeerw.org/prog/freecpp/namespace_template_func.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org