{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","version":"1.0","title":" mutable\u30e9\u30e0\u30c0\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8\u3092\u7701\u7565\u3067\u304d\u306a\u3044","url":"https://faithandbrave.hateblo.jp/entry/20090706/1246871161","author_name":"faith_and_brave","published":"2009-07-06 18:06:01","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20090706%2F1246871161\" title=\" mutable\u30e9\u30e0\u30c0\u306f\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8\u3092\u7701\u7565\u3067\u304d\u306a\u3044 - 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>","width":"100%","description":"comp.std.c++ - Empty parameter list not optional for mutable lambdas? \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3089\u306a\u3044\u30e9\u30e0\u30c0\u5f0f\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8\u3092\u7701\u7565\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c int x; // \u4ee5\u4e0b\u306e2\u3064\u306f\u540c\u3058\u610f\u5473 auto f1 = [&]() { ++x; }; auto f2 = [&] { ++x; }; \u30d1\u30e9\u30e1\u30fc\u30bf\u30ea\u30b9\u30c8\u3092\u7701\u7565\u3057\u305f\u5834\u5408\u306b\u306fmutable\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002 int x; auto f3 = [=]() mutable { ++x; }; // OK auto f4 = [=] mutable { ++x; };\u2026","type":"rich","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","categories":["C++"],"height":"190","blog_url":"https://faithandbrave.hateblo.jp/","provider_url":"https://hatena.blog"}