[Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>
- Next message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11541: Building with /Zc:wchar_t- on VC causes errors in boost::log since 1.59.0"
- Previous message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #11570: Boost 1.59.0 breaks lexical_cast to a move-only type (from a string)"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
#11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>
-------------------------------------------------+-------------------------
Reporter: Tony Lewis <tonyelewis@â¦> | Owner: rogeeff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.59.0 | Severity: Problem
Keywords: |
test,BOOST_TEST,per_element,collections,string,vector|
-------------------------------------------------+-------------------------
Thanks for the new BOOST_TEST() and per_element() tools, which look very
useful.
Unfortunately, the following simple vector<string> example fails to
compile under both `g++ -std=c++11` and `clang++ -std=c++11
-stdlib=libc++`.
{{{
#!cpp
#define BOOST_TEST_MODULE comp_str_mod
#include <boost/test/included/unit_test.hpp>
#include <string>
#include <vector>
BOOST_AUTO_TEST_CASE( comp_strs ) {
std::vector<std::string> a{ "ann" };
std::vector<std::string> b{ "bry" };
BOOST_TEST( a == b, boost::test_tools::per_element() );
}
}}}
The core part of GCC's error message is:
{{{
error: ârevertâ is not a member of
âboost::test_tools::assertion::op::EQ<std::basic_string<char>,
std::basic_string<char>, void>â
}}}
If I'm doing it wrong, is there any way we can make the compile errors
and/or documentation clearer about avoiding this? Thanks.
--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11571>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
- Next message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11541: Building with /Zc:wchar_t- on VC causes errors in boost::log since 1.59.0"
- Previous message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #11570: Boost 1.59.0 breaks lexical_cast to a move-only type (from a string)"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #11571: Can't compile BOOST_TEST( ..., per_element() ) comparison of vector<string>"
This archive was generated by hypermail 2.1.7
: 2017-02-16 18:50:18 UTC