ä¸ï¼å¥³åã§ãã æèä¼åº§.tech#8ãC++åå¿è ä¼ãã¨ããåå¼·ä¼ãå æ¥ãããèªç§°åå¿è ãã¯ã½ã¶ã³ã«ãããã¾ãã¾ãªçºè¡¨ããããªããããèªåã¯åå ã§ããªãã£ãã®ã§ãããã¤ãã®çºè¡¨ããã³çã§è¦è´ããã ãã®ä¸ã«ã@wx257osn2 æ°ã«ãã constexpr ã©ã ãã©ã¤ãã©ãªãå®è£ ããã¨ããçºè¡¨ããã£ããå®è£ ã«ããã£ã¦ã¯ Clang ã®ãã°ã«å¯¾å¦ããã¯ã¼ã¯ã¢ã©ã¦ã³ããæ¸ãã®ã«è¦å´ããã¨ããããããããªããClang ã¯å ¨ä½çãªè¦æ ¼æºæ 度ã§ã¯ãããã GCC 以ä¸ã¨ãã£ã¦ããããconstexpr é¢ä¿ã§ã¯ãã¾ã ã«è´å½çãªãã°ãæ®ãã¦ããããããã©ã®ãããªãã°ãªã®ãå¿çã§é½é½¬ããã£ããããªã®ã§ãèããã®è£è¶³ãããã«è¨ãã¦ããã Clang ã® constexpr é¢ä¿ã®è´å½çãªãã°ã¨ã¯ãç¸äºå帰ã«ããããã°ã§ãããç¸äºå帰ãã constexpr é¢æ°ãã³ãã¬ã¼ããå®ä½åããã¨ããã³ãã¬ã¼
{{#tags}}- {{label}}
{{/tags}}