{"blog_title":"yohhoy\u306e\u65e5\u8a18","published":"2021-02-09 00:00:00","description":"C++20 requires\u5f0f(requires-expression)\u306e\u5358\u7d14\u306a\u5229\u7528\u3067\u306f\u975estatic\uff0fstatic\u30e1\u30f3\u30d0\u3092\u533a\u5225\u3067\u304d\u306a\u3044\u3002requires\u5f0f\u306e\u672c\u4f53\u90e8\u306f\u8a55\u4fa1\u3055\u308c\u306a\u3044(unevaluated)\u305f\u3081\u3001\u901a\u5e38\u30b3\u30fc\u30c9\u3068\u306f\u7570\u306a\u308b\u898f\u5247\u304c\u9069\u7528\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3002 // static\u30e1\u30f3\u30d0m\u3092\u6301\u3064\u578bX struct X { static const int m = 1; }; // (\u975estatic)\u30e1\u30f3\u30d0m\u3092\u6301\u3064\u578bY struct Y { int m = 2; }; // static\u30e1\u30f3\u30d0T::m\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30f3\u30bb\u30d7\u30c8(\uff1f) template <typename T> concept HasSta\u2026","width":"100%","image_url":null,"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20210209%2Fp1\" title=\"\u975estatic\u30c7\u30fc\u30bf\u30e1\u30f3\u30d0\u3092\u5224\u5b9a\u3059\u308b\u5236\u7d04\u5f0f - 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>","blog_url":"https://yohhoy.hatenadiary.jp/","author_name":"yohhoy","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/yohhoy/","url":"https://yohhoy.hatenadiary.jp/entry/20210209/p1","type":"rich","title":"\u975estatic\u30c7\u30fc\u30bf\u30e1\u30f3\u30d0\u3092\u5224\u5b9a\u3059\u308b\u5236\u7d04\u5f0f","version":"1.0","categories":["C++"],"height":"190"}