#12216 closed Bugs (duplicate)
Data driven test compile failure when taking a join of grids
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | Boost 1.69 | Component: | test |
Version: | Boost 1.61.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The title pretty much says it all. Here's a reproducer:
//main.cpp #include<boost/test/unit_test.hpp> #include<boost/test/data/test_case.hpp> namespace bd = boost::unit_test::data; BOOST_DATA_TEST_CASE(testname, (bd::make(1) * bd::make(2)) + (bd::make(3) * bd::make(4)), arg1, arg2){}
Produced with gcc 5.2.0 with command line
$ gcc -std=c++14 -c main.cpp -o main.o
Change History (6)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
It looks like joins of zips are broken in the same way joins of grids are, but this fix should work for both (I didn't actually unfix join to test though, just eyeballing it)
comment:3 by , 6 years ago
Component: | None → test |
---|---|
Owner: | set to |
comment:4 by , 6 years ago
Pull request breaking other tests. In the current design, joins are not creating any temporary and grids are creating temporary by design.
comment:6 by , 4 years ago
Milestone: | To Be Determined → Boost 1.69 |
---|
Note:
See TracTickets
for help on using tickets.
Pull request of fix:
https://github.com/boostorg/test/pull/100
Note that this pull request uses some c++14 features...I saw c++14 features used in grid.hpp (with auto return type) so I went ahead and used them myself. If these changes are in places that support older standards, this pull request won't work as is...just let me know.