Re: [Boost-bugs] [Boost C++ Libraries] #11625: BOOST_TEST( ..., per_element() ) erroneously requires collections are comparable

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11625: BOOST_TEST( ..., per_element() ) erroneously requires collections are comparable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-23 14:40:28


#11625: BOOST_TEST( ..., per_element() ) erroneously requires collections are
comparable
-------------------------------------+-------------------------------------
  Reporter: Tony Lewis | Owner: renficiaud
  <tonyelewis@…> | Status: reopened
      Type: Bugs | Component: test
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.60.0 | Keywords:
Resolution: | BOOST_TEST,per_element,collections,comparable,element,range,equality
-------------------------------------+-------------------------------------

Comment (by Tony Lewis <tonyelewis@…>):

 Thanks for this, yes I can confirm that I'm able to fix my problems by
 adding `size` and `value_type`. Sorry - I should have RTFM properly :-).

 To make it harder for others to repeat my mistake, it might be useful to:
  * add a note
 [http://www.boost.org/libs/test/doc/html/boost_test/testing_tools/extended_comparison/collections.html#boost_test.testing_tools.extended_comparison.collections.requirements
 here] to explicitly state that the comparators must meet the requirements
 of a sequence and then link to
 [http://www.boost.org/libs/test/doc/html/boost_test/testing_tools/extended_comparison/collections.html#boost_test.testing_tools.extended_comparison.collections.what_is_a_sequence
 the definition further down that page] that you highlighted.
  * ideally use a `Sequence` concept to make the compiler errors more
 helpful. I realise that you may be keen to avoid adding a dependency to
 the Boost Concept library.

 Again, thanks and apologies. I'm happy for you to close this ticket.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11625#comment:9>
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:19 UTC