Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#4105 closed Bugs (fixed)

Const issue in split_std_deque_policy.hpp

Reported by: taylor_goodhart@… Owned by: Hartmut Kaiser
Milestone: Boost 1.43.0 Component: spirit
Version: Boost 1.42.0 Severity: Problem
Keywords: Cc:

Description

When trying to compile the example code given on the Spirit web site here: http://boost-spirit.com/dl_more/parsing_tracking_position/stream_iterator_errorposition_parsing.cpp I ran into a "cannot convert from 'const char' to 'char &'" error when compiling under VS 2010 Express. The error occurred in split_std_dequeue_policy.hpp:69, and the following line fixes the problem:

return const_cast< MultiPass::reference >( MultiPass::template get_input<Value>( mp ) );

However using const_cast usually indicates a deeper flaw, so I'm not sure this is an acceptable long term fix.

Change History (3)

comment:1 by anonymous, 13 years ago

Owner: changed from Joel de Guzman to Hartmut Kaiser

comment:2 by Hartmut Kaiser, 13 years ago

Resolution: fixed
Status: newclosed

This has already been fixed in SVN and has been merged to V1.43.

comment:3 by anonymous, 13 years ago

Thanks!

Note: See TracTickets for help on using tickets.