{"width":"100%","provider_url":"https://hatena.blog","type":"rich","published":"2009-06-03 00:00:00","url":"https://so-wh.at/entry/20090603/p4","blog_title":"so what","author_name":"winebarrel","description":"_Bool_type\u304c\u6c17\u306b\u306a\u3063\u305f\u306e\u3067\u5c11\u3057\u8abf\u67fb\u3002 #include <iostream> using namespace std; class TrueFalse { bool r_; public: TrueFalse(bool r) : r_(r) {}; operator std::_Bool_type() const { return r_ ? _CONVERTIBLE_TO_TRUE : 0; } }; void print_bool(TrueFalse& tf) { cout << (tf ? \"true\" : \"false\") << endl; } int main() { Tru\u2026","image_url":null,"version":"1.0","blog_url":"https://so-wh.at/","categories":["C++"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/winebarrel/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20090603%2Fp4\" title=\" _Bool_type - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","title":" _Bool_type"}