<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>C++でゲームプログラミング</blog_title>
  <blog_url>https://osyo-manga.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>boost</anon>
  </categories>
  <description>文字列をパースする場合、*qi::char_ のようなパーサを定義すると思いますが、これだと std::vector で受け取る必要があります。 auto parser = '(' &gt;&gt; *(qi::char_ - ')') &gt;&gt; ')'; test_parser(&quot;(madohomu)&quot;, parser[[](std::vector&lt;char&gt; const&amp; v){ // }]); この場合、std::string で受け取るには qi::as_string を使用します。 [ソース] #include &lt;boost/spirit/include/qi.hpp&gt; template &lt;type…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20120425%2F1335351771&quot; title=&quot;Boost.Spirit.Qi のセマンティックアクションで std::string を受け取る - C++でゲームプログラミング&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-25 20:02:51</published>
  <title>Boost.Spirit.Qi のセマンティックアクションで std::string を受け取る</title>
  <type>rich</type>
  <url>https://osyo-manga.hatenadiary.org/entry/20120425/1335351771</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
