{"provider_url":"https://hatena.blog","categories":["C++"],"author_name":"yohhoy","description":"C++11 static_assert\u6761\u4ef6\u90e8\u306e\u5b9a\u6570\u5f0f(constant expression)\u306b\u3066\u3001\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u63d0\u4f9b\u306e\u30e1\u30bf\u95a2\u6570\u3092\u5229\u7528\u3059\u308b\u3068\u304d\u306e\u30e1\u30e2\u30022017-11-10\u8ffd\u8a18\uff1a\u4e00\u90e8\u306e\u30e1\u30bf\u95a2\u6570\u3067\u610f\u56f3\u3057\u306a\u3044\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u5f15\u304d\u8d77\u3053\u3059\u305f\u3081\u3001\u3053\u306e\u30a4\u30c7\u30a3\u30aa\u30e0\u3092\u4f7f\u3046\u3079\u304d\u3067\u306a\u3044\u3002C++1z(C++17)\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u8ffd\u52a0\u3055\u308c\u308b\u5909\u6570\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7248\u30e1\u30bf\u95a2\u6570\uff08std::is_same_v<T,U>\u306a\u3069\uff09\u5229\u7528\u3092\u63a8\u5968\u3059\u308b\u3002\u8a73\u7d30\u306f id:yohhoy:20171110 \u53c2\u7167\u3002\u6a19\u6e96\u30d8\u30c3\u30c0 type_traits \u304c\u63d0\u4f9b\u3059\u308b\u30e1\u30bf\u95a2\u6570\u3092\u4f7f\u3046\u3068\u304d\u3001\u4e0b\u8a182\u901a\u308a\u306e\u3044\u305a\u308c\u304b\u3067\u8a18\u8ff0\u3067\u304d\u308b\u3002\u5f8c\u8005\u306e\u65b9\u304c\u898b\u3084\u3059\u3044\uff1f #include <\u2026","title":"static_assert\uff0b\u6a19\u6e96\u30e1\u30bf\u95a2\u6570","image_url":null,"blog_url":"https://yohhoy.hatenadiary.jp/","url":"https://yohhoy.hatenadiary.jp/entry/20121207/p1","blog_title":"yohhoy\u306e\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/yohhoy/","height":"190","published":"2012-12-07 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20121207%2Fp1\" title=\"static_assert\uff0b\u6a19\u6e96\u30e1\u30bf\u95a2\u6570 - 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>","version":"1.0","width":"100%","provider_name":"Hatena Blog","type":"rich"}