{"provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/Flast/","categories":["C++","Boost","Boost.Phoenix","Boost.Move"],"provider_url":"https://hatena.blog","published":"2012-06-28 22:05:12","blog_title":"\u306b\u3083\u306f\u306f\u30fc","url":"https://flast.hateblo.jp/entry/2012/06/28/220512","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflast.hateblo.jp%2Fentry%2F2012%2F06%2F28%2F220512\" title=\"Boost.Phoenix V3\u3067\u306emove - \u306b\u3083\u306f\u306f\u30fc\" 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%","image_url":"http://a0.twimg.com/profile_images/2346564441/uig8fmihpzhbdgalnsjk_normal.jpeg","blog_url":"https://flast.hateblo.jp/","author_name":"Flast","description":"\u4f8b\u3048\u3070 common.hpp \u3092\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u305f\u3068\u3059\u308b\u3002 #include <boost/move/move.hpp> struct S { BOOST_MOVABLE_BUT_NOT_COPYABLE(S) public: S() {} S(BOOST_RV_REF(S)) {} }; void f(S) {} \u3067\u3001\u3053\u306eS\u3092f\u306bmove\u3057\u3066\u307f\u308b\u3002 #include \"common.hpp\" #include <boost/move/move.hpp> int main() { S s; f(boost::move(s)); } \u307e\u3041\u3053\u3053\u307e\u3067\u306f\u5f53\u7136\u52d5\u304f\u3002\u3067\u3001\u3053\u3053\u304b\u3089\u672c\u984c\u3002\u4e0a\u306e\u30b3\u30fc\u30c9\u3092Boost\u2026","title":"Boost.Phoenix V3\u3067\u306emove","type":"rich"}