{"blog_url":"https://so-wh.at/","title":" cygwin, gcc4, tr1","categories":["C++"],"width":"100%","height":"190","description":"\u3053\u306e\u30bd\u30fc\u30b9\u304c\u4e00\u5fdc\u3001cygwin\u3067\u3082\u30d3\u30eb\u30c9\u3067\u304d\u305f\u3002 #include <iostream> #include <tr1/functional> using namespace std; int count1(int n) { return ++n; } int count2(int &n) { return ++n; } int count3(int *n) { return ++(*n); } int main() { int n1 = 0, n2 = 0, n3 = 0; tr1::function<int (void)> f1 = tr1::bind(count1, n1); tr1::f\u2026","url":"https://so-wh.at/entry/20090529/p3","type":"rich","author_name":"winebarrel","version":"1.0","image_url":null,"provider_name":"Hatena Blog","blog_title":"so what","author_url":"https://blog.hatena.ne.jp/winebarrel/","published":"2009-05-29 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20090529%2Fp3\" title=\" cygwin, gcc4, tr1 - 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>","provider_url":"https://hatena.blog"}