www.digitalmars.com         C & C++   DMDScript  

c++ - using a template from an extern "C" function

template<class T>
struct A
{
  static void f();
};

extern "C" void g()
{
  A<bool>::f();
}


and have a look at the generated code for g:

_g:
                call    near ptr _f
                ret


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jan 04 2003