{"categories":["C++"],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20120308%2F1331187911\" title=\" Boost.Context \u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u6319\u52d5 - 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>","image_url":null,"blog_url":"https://faithandbrave.hateblo.jp/","title":" Boost.Context \u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u6319\u52d5","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","type":"rich","width":"100%","author_name":"faith_and_brave","published":"2012-03-08 15:25:11","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","provider_name":"Hatena Blog","url":"https://faithandbrave.hateblo.jp/entry/20120308/1331187911","version":"1.0","description":"\u7d99\u7d9a\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5185\u3067\u751f\u6210\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u3069\u3046\u3044\u3046\u6319\u52d5\u3092\u3059\u308b\u306e\u304b\u8abf\u3079\u307e\u3057\u305f\u3002 \u307e\u305a\u3001\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u547c\u3070\u308c\u306a\u3044no_stack_unwind\u306e\u5834\u5408\uff1a #include <iostream> #include <boost/context/all.hpp> #include <boost/function.hpp> class continuation { boost::contexts::context ctx_; boost::function<void(continuation&)> fn_; bool started_; void trampoline_() { fn_(*\u2026"}