Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5967: boost::archive::iterators::remove_whitespace do not work with pointers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-02 21:09:43
#5967: boost::archive::iterators::remove_whitespace do not work with pointers
--------------------------------+-------------------------------------------
Reporter: cdubout@⦠| Owner: ramey
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: serialization
Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------+-------------------------------------------
Comment (by cdubout@â¦):
Replying to [comment:1 ramey]:
> I'd have to see a small test case. Until that happens, I'm deleting
this ticket.
>
> Robert Ramey
I could write a test case but it would really be a waste of time.
Let me quote the source code of boost 1.47:
{{{
template<class Base>
class remove_whitespace :
public filter_iterator<
remove_whitespace_predicate<BOOST_DEDUCED_TYPENAME
Base::value_type>,
}}}
If base is a pointer as opposed to an iterator class, there will be a
compilation error since Base is not a class, and do not contain a
value_type.
There might be an easy workaround, but so far I did not find how to use
remove_whitespace directly on C strings.
Regards,
Charles
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5967#comment:2> 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:07 UTC