Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10156: Error with count_if on QNX
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-01 16:00:45
#10156: Error with count_if on QNX
------------------------------------------+---------------------------
Reporter: Niklas Angare <li51ckf02@â¦> | Owner: ramey
Type: Patches | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------
Comment (by anonymous):
I don't think your patch would work. The difference of two pointers would
give an integer - but that integer would only be equal to the number of
items if the the items were known to be contiguous like in an array or
vector. The patch might make the test pass - but this would be a fluke.
(testing only proves the existence of bugs - not their absence).
Soooooo....
I think we have to look more carefully at the error message. I don't have
QNX, so I can't look at the actual source code which generates these
messages but I can give you some hints about what to look for. Just look
in algorithms and see if you can find the signature for count_if and see
if there is anything interesting. One thing that I did see in the
implementation of forward_list is that it uses t.begin() rather than
t.cbegin(). This is because the count_if doesn't alter any of the
elements of the sequence. Try making this change (and for end() as well
of course) and see if it helps.
Another interesting thing to test would be to use the C++11 lambda
implementation which is currently commented out. That might yield some
useful and/or surprising information.
Since you're working with QNX, you might also look into some test failures
with that platform. In particular look at
http://www.boost.org/development/tests/develop/developer/output/NA-
QNX650-SP1-ARM-boost-bin-v2-libs-serialization-test-
test_array_text_warchive-test-qcc-4-4-2_arm-debug-debug-symbols-off.html
That is the failing test for text_warchive - all tests. Note that these
fail with both (ARM and intel) versions of QNX being tested. This would
be helpful to me.
Robert Ramey
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10156#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:16 UTC