ã¯ããã« C++ã§ã¯é常ãã¯ã©ã¹ã®privateã¡ã³ãã«å¤é¨ããã¢ã¯ã»ã¹ãããã¨ãã§ããªãã ã¢ã¯ã»ã¹ããããã«ã¯ãfriendé¢æ°ãfriendã¯ã©ã¹ãç¨ããã ãããã http://bloglitb.blogspot.com/2010/07/access-to-private-members-thats-easy.html ã§è©±é¡ã¨ãªããDaveãã https://gist.github.com/1528856 ã«ã¨ãã»ã³ã¹ãæ½åºããã³ã¼ããèµ·ããã¦ããããprivateã¡ã³ãã«å¤é¨ããåæ³çã«ã¢ã¯ã»ã¹ããæ¹æ³ãããã Daveã®ã³ã¼ãã®ã³ã¡ã³ãã ãã§å¿ è¦ååãããããªãããç§ã¯ç解ããã®ã«ããªãæéãããã£ã¦ãã¾ã£ãã®ã§ããã®çµç·¯ãå¿ããªãããã«ãããã«æ¸ãã¦ããããã¨æãã ã¡ã³ããã¤ã³ã¿ã®å¾©ç¿ ã¾ãã¯ããã®ã³ã¼ããè¦ã¦æ¬²ããã http://ideone.com/dGRqg
{{#tags}}- {{label}}
{{/tags}}