2012-09-01ãã1ã¶æéã®è¨äºä¸è¦§
â» 20121001 è¿½è¨ Googleãã¹ã¯ãããæ¤ç´¢ã§ããããã°ãã¯ãåã®å¤ãã¦ããä¼ç¤¾ã§ã¯ãèªå¸ãããããã«ã¢ã¯ã»ã¹ã§ãã¾ããã ãããå°ç¨PCã§ã¢ã¯ã»ã¹ãã¦ããã¼ã¿ãé¨å ãµã¼ãã«ä¸åº¦ä¿åãã¦ããããèªå¸ãããã¦ã³ãã¼ãããã¨ããç³ã·ã¹ãã ã§ããç³ã·ã¹ãâ¦
"å®è·µãã¹ãé§åéçº"è¶ è¯ãã§ãããã¨ãããã¨ã§ãC++ã§ä½¿ããåä½ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã§ããGoogle testã¨ã¢ãã¯ãã¬ã¼ã ã¯ã¼ã¯ã§ããGoogle Mockã使ããç°å¢ãæ´ãã¾ãããã¨ãã話ã«ãªãã¾ãããCygwinä¸ã§åãããããã«ãªãã°ããã¨ã¯ã©ãã§ãåããâ¦
ååshared_ptrã®ä½¿ãæ¹ãé©å½ã«åå¼·ããã®ã§ãæ©é使ã£ã¦ã¿ããã¼ã¨æã£ã¦ä½¿ã£ã¦ã¿ãã"ããï¼ããã©ãããã ï¼"ã£ã¦ãã¨ããã£ãã®ã§ãããã®ç¢ºèªããã¾ãã constã¯ï¼ shared_ptrãå¼æ°ã§æ¸¡ãã«ã¯ã¨ãããããã®ã¾ã¾æ¸¡ãã¦ãåãã¾ã #include "stdafx.h"â¦
ã¿ã¤ãã«ã®ã¨ããã§ãã åºæ¬çãªä½¿ç¨æ¹æ³ ã¾ãåºæ¬çãªä½¿ãæ¹ã #include "stdafx.h" #include <memory> #include <iostream> class Hoge { public: Hoge(){} ~Hoge(){ std::cout << "Hogeã®ãã¹ãã©ã¯ã¿ã ã" << std::endl; } int number_; }; int _tmain(int argc, _TCHAR* </iostream></memory>â¦