最初由 iamcool 发布
too later, I am going home.
Hope I can get answer tomorrow. Thanks again, everybody.
I think you guy knows that template implementation is one of the not-fully-defined issues in C++ standard, so different compilers may have different requirment for the template implementation, such as BC++, VC++, GNU C++ or FlexC++ or others.
Some of these compilers are much more flexiable than others, such as G++, FlexC++.
I try both of these two, GNU C++ and FlexC++just few minuts ago, both work well.
and some other guys have given out some explanations, but my experience tell me it would be better to try to read the TELPATE section of online help/manaul of your compiler to fully follow its requirment. because these compilers have different requirment fo template implementation.
Good Luck.