{"provider_url":"https://hatena.blog","published":"2010-07-30 16:15:40","url":"https://faithandbrave.hateblo.jp/entry/20100730/1280474140","height":"190","author_name":"faith_and_brave","categories":["C++"],"title":" BOOST_FUSION_ADAPT_STRUCT\u306e\u62e1\u5f35","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20100730%2F1280474140\" title=\" BOOST_FUSION_ADAPT_STRUCT\u306e\u62e1\u5f35 - 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,"width":"100%","blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","description":"ADAPT_STRUCT extensions \u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u578b\u3092Fusion\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u306b\u30a2\u30c0\u30d7\u30c8\u3059\u308b\u305f\u3081\u306e\u30de\u30af\u30ed\u3001BOOST_FUSION_ADAPT_STRUCT\u306e\u6b21\u671f\u62e1\u5f35\u3068\u3057\u3066\u3053\u3093\u306a\u306e\u304c\u4eca\u4f5c\u3089\u308c\u3066\u307e\u3059\u3002 struct A { int a; }; struct B { int b; }; struct C : A, B { int c; }; BOOST_FUSION_ADAPT_STRUCT(A, (int, a) ) BOOST_FUSION_ADAPT_STRUCT(B, (int, b) ) BOOST_FUSION_ADAPT_DERIVED( C, (A)(B), (int, \u2026","blog_url":"https://faithandbrave.hateblo.jp/","type":"rich","version":"1.0","author_url":"https://blog.hatena.ne.jp/faith_and_brave/"}