c++.beta - Template error
- smille purusa <smille_member pathlink.com> Apr 18 2003
#include <iostream.h>
template <const char *& STR>
struct TEST {
TEST() {
cout << STR << endl;
}
};
const char *g = "Hello World";
int main()
{
TEST<g> obj;
return 0;
}
// results: 0x40b080
// digitalmars C++ 8.34.5 beta used.
Apr 18 2003








smille purusa <smille_member pathlink.com>