Topic: Q: pointer to template function instance
Author: "Erich Eichinger" <oaky@gmx.at>
Date: 1999/11/15 Raw View
Consider the following code:
template<class T> void foo( void* ptr)
{
(static_cast<T*>(ptr) )->SomeMember();
}
void main()
{
void (*pfnFoo)(void*);
pfnFoo =3D &foo<SomeClass>; // <-- std conform ?
}
Should this explicit template function instantiation be legal standard =
C++? My Compiler refuses this (VC 6 SVP 3)...
TIA,
Erich
----------------------------------------------
Erich Eichinger
----------------------------------------------
reality.sys corrupted - reboot universe (Y/N)?
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]