#4105 closed Bugs (fixed)
Const issue in split_std_deque_policy.hpp
Reported by: | 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 , 13 years ago
Owner: | changed from | to
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This has already been fixed in SVN and has been merged to V1.43.