{"provider_name":"Hatena Blog","published":"2020-12-17 00:00:00","description":"C++20\u30b3\u30f3\u30bb\u30d7\u30c8\u3067\u5c0e\u5165\u3055\u308c\u305frequires\u7bc0\u3068\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7279\u6b8a\u5316\u306e\u7d44\u307f\u5408\u308f\u305b\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3002\u4f8b\u3048\u3070\u5236\u7d04\u4ed8\u304d\u30d7\u30e9\u30a4\u30de\u30ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8(#1)\u306b\u5bfe\u3057\u3066double\u578b\u3067\u660e\u793a\u7684\u7279\u6b8a\u5316(#2)\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u3001\u4e0b\u8a18\u8a18\u8ff0\u30b3\u30fc\u30c9\u3067\u306f#2\u5b9a\u7fa9\u3067ill-formed\u306b\u306a\u308b\u3002\u3053\u308c\u306f#1\u306erequires\u7bc0\u306b\u3088\u308aT=double\u306e\u3068\u304d\u30d7\u30e9\u30a4\u30de\u30ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u4e0d\u5728\u3068\u307f\u306a\u3055\u308c\u308b\u305f\u3081\u3002 #include <concepts> // #1 \u30d7\u30e9\u30a4\u30de\u30ea\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8(\uff1f) template<typename T> requires (!std::floating_point<T>) int f(T) { return 0; \u2026","type":"rich","author_url":"https://blog.hatena.ne.jp/yohhoy/","version":"1.0","categories":["C++"],"image_url":null,"provider_url":"https://hatena.blog","width":"100%","author_name":"yohhoy","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20201217%2Fp1\" title=\"requires\u5236\u7d04\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7279\u6b8a\u5316\u306e\u95a2\u4fc2 - 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/","url":"https://yohhoy.hatenadiary.jp/entry/20201217/p1","blog_title":"yohhoy\u306e\u65e5\u8a18","title":"requires\u5236\u7d04\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7279\u6b8a\u5316\u306e\u95a2\u4fc2"}