Boost C++ Libraries: Ticket #4105: Const issue in split_std_deque_policy.hpp https://svn.boost.org/trac10/ticket/4105 <p> When trying to compile the example code given on the Spirit web site here: <a class="ext-link" href="http://boost-spirit.com/dl_more/parsing_tracking_position/stream_iterator_errorposition_parsing.cpp"><span class="icon">​</span>http://boost-spirit.com/dl_more/parsing_tracking_position/stream_iterator_errorposition_parsing.cpp</a> I ran into a "cannot convert from 'const char' to 'char &amp;'" error when compiling under VS 2010 Express. The error occurred in split_std_dequeue_policy.hpp:69, and the following line fixes the problem: </p> <p> return const_cast&lt; MultiPass::reference &gt;( MultiPass::template get_input&lt;Value&gt;( mp ) ); </p> <p> However using const_cast usually indicates a deeper flaw, so I'm not sure this is an acceptable long term fix. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4105 Trac 1.4.3 anonymous Fri, 16 Apr 2010 06:39:15 GMT owner changed https://svn.boost.org/trac10/ticket/4105#comment:1 https://svn.boost.org/trac10/ticket/4105#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Hartmut Kaiser</span> </li> </ul> Ticket Hartmut Kaiser Fri, 16 Apr 2010 11:22:34 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4105#comment:2 https://svn.boost.org/trac10/ticket/4105#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This has already been fixed in SVN and has been merged to V1.43. </p> Ticket anonymous Fri, 16 Apr 2010 15:45:32 GMT <link>https://svn.boost.org/trac10/ticket/4105#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4105#comment:3</guid> <description> <p> Thanks! </p> </description> <category>Ticket</category> </item> </channel> </rss>