http://www.kuzbass.ru:8086/docs/isocpp/special.html#class.conv ã¯ã©ã¹ã®åå¤æã¯ã³ã³ã¹ãã©ã¯ã¿ã¨åå¤æé¢æ°ã使ã£ã¦å®ç¾©ã§ããããããã®åå¤æã¯ãã¦ã¼ã¶ã¼å®ç¾©åå¤æã¨å¼ã°ããæé»çåå¤æãå¤æ°åæååãæ示çåå¤æã«ä½¿ãããã ã¦ã¼ã¶ã¼å®ç¾©åå¤æã¯ãåå¤æã®å®ç¾©ãææ§ãããªãã¨ãã«ã ãé©ç¨ããããåå¤æã¯ãã¢ã¯ã»ã¹å¶å¾¡è¦åï¼private, public, protectedï¼ã«å¾ããã¢ã¯ã»ã¹å¶å¾¡è¦åã¯ãææ§ãã®è§£æ±ºã®ãã¨é©ç¨ãããã ãã£ã¨ã使ãããã¦ã¼ã¶ã¼å®ç¾©åå¤æã¯ãåä¸å¤ã¸ã®æé»çåå¤æã ã class X { // ... public: operator int(); }; class Y { // ... public: operator X(); }; Y a; int b = a; // NG: X().oper
{{#tags}}- {{label}}
{{/tags}}