2008å¹´ã®3æã«ãªãªã¼ã¹ãããgdb-6.8ã®ç®çæ©è½ã®ä¸ã¤ã«ãC++ãµãã¼ãã®å¼·åããããã¾ã*1ããã®æ©è½ã使ãã¨ãSTLãboostã®ãããªãã³ãã¬ã¼ãã使ã£ãã³ã¼ãã®ãããã°ãããªã楽ã«ãªãã¾ããC++使ãã®æ¹ã¯ãæ¯égdbã6.8ã«upgradeãã¾ãããã å ·ä½çã«ã以ä¸ã®ãããªã³ã¼ãã使ã£ã¦ããC++ãµãã¼ãã®å¼·åãã«ã¤ãã¦èª¬æãã¾ãã #include <iostream> using namespace std; template <typename T> class A { public: void func() { cout << sizeof(T) << endl; } }; int main() { A<int> integer; A<double> real; integer.func(); real.func(); return 0; } ãã®ã³ã¼ãã«å¯¾ãã¦
{{#tags}}- {{label}}
{{/tags}}