April 19, 2003 Template error | ||||
---|---|---|---|---|
| ||||
#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. |
Copyright © 1999-2021 by the D Language Foundation