المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Pure C++: Reflecting on Generic Types



C++ Programming
03-29-2009, 02:42 AM
A funny thing happened to templates on their way to the common ******** runtime (CLR)—they lost their {type} identity. This is analogous to what happens with macros under native programs. Just as the C/C++ compilers have no awareness of macro preprocessor expansions, the CLR has no awareness of template instantiations.

Stanley B. Lippman

<a href="http://msdn.microsoft.com/magazine/fc874fcd-e16a-413e-840a-39400939da68">MSDN Magazine December 2005