{"width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20081031%2F1225446059\" title=\" VC++10 CTP\u306e\u30e9\u30e0\u30c0\u5f0f\u3067\u30e1\u30f3\u30d0\u5909\u6570\u3092\u53c2\u7167\u30ad\u30e3\u30d7\u30c1\u30e3 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" VC++10 CTP\u306e\u30e9\u30e0\u30c0\u5f0f\u3067\u30e1\u30f3\u30d0\u5909\u6570\u3092\u53c2\u7167\u30ad\u30e3\u30d7\u30c1\u30e3","provider_url":"https://hatena.blog","categories":["VC++"],"blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","published":"2008-10-31 18:40:59","height":"190","type":"rich","image_url":null,"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","author_name":"faith_and_brave","blog_url":"https://faithandbrave.hateblo.jp/","version":"1.0","description":"#include <iostream> #include <functional> using namespace std; using namespace std::tr1; class hoge { function<void()> func_; int id_; public: hoge() : id_(10) { func_ = [this]{ ++id_; }; } void call() const { func_(); cout << id_ << endl; } }; int main() { hoge h; h.call(); // 11 }","url":"https://faithandbrave.hateblo.jp/entry/20081031/1225446059"}