{"height":"190","blog_title":"yohhoy\u306e\u65e5\u8a18","author_name":"yohhoy","published":"2023-02-20 00:00:00","provider_url":"https://hatena.blog","blog_url":"https://yohhoy.hatenadiary.jp/","categories":["C++"],"description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306b\u304a\u3051\u308bconstexpr if\u6587\u3068static_assert\u5ba3\u8a00\u306e\u7d44\u5408\u305b\u306b\u95a2\u3059\u308b\u30e1\u30e2\u30022023\u5e742\u6708\u4f1a\u5408\u306b\u3066static_assert(false)\u3092\u8a31\u5bb9\u3059\u308bP2593R1\u304cCWG 2518\u3078\u3068\u7d71\u5408\u3055\u308c*1\u3001C++\u8a00\u8a9e\u4ed5\u69d8\u306b\u5bfe\u3059\u308bDefect Report\u3068\u3057\u3066\u9061\u53ca\u9069\u7528\u3055\u308c\u308b\u3002*2CWG 2518\u9069\u7528\u524d\u306eC++\u8a00\u8a9e\u4ed5\u69d8\u3067\u306f\u3001\u4e0b\u8a18\u30b3\u30fc\u30c9\u306f\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u610f\u56f3\u306b\u53cd\u3057\u3066\u95a2\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3088\u308a\u524d\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3068\u306a\u308b\u3002 #include <type_traits> template <typename T> T doubling(T x) { if constex\u2026","image_url":null,"url":"https://yohhoy.hatenadiary.jp/entry/20230220/p1","author_url":"https://blog.hatena.ne.jp/yohhoy/","type":"rich","version":"1.0","width":"100%","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20230220%2Fp1\" title=\"static_assert(false, &quot;was wrong&quot;); - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"static_assert(false, \"was wrong\");"}