[Boost-bugs] [Boost C++ Libraries] #4105: Const issue in split_std_deque_policy.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #4105: Const issue in split_std_deque_policy.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-16 05:36:55


#4105: Const issue in split_std_deque_policy.hpp
----------------------------------------+-----------------------------------
 Reporter: taylor_goodhart@… | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: spirit
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
----------------------------------------+-----------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4105>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC