Opened 6 years ago

Closed 6 years ago

#12779 closed Bugs (invalid)

Operations on datasets (join, zip, grid) not available with two user-defined datasets

Reported by: Moritz Pflanzer <moritz@…> Owned by: Raffi Enficiaud
Milestone: To Be Determined Component: test
Version: Boost 1.63.0 Severity: Problem
Keywords: Cc:

Description

Operations on datasets (join, zip, grid) are not found by the compiler if both operands are user-defined datasets. The problem is that user-defined datasets are (usually and per the fibonacci example [*]) not declared in the same namespace as the operator overloads, namely

namespace boost { namespace unit_test { namespace data { namespace monomorphic {

Please find a minimal (not) working example attached.

* http://www.boost.org/doc/libs/1_63_0/libs/test/doc/html/boost_test/tests_organization/test_cases/test_case_generation/datasets.html

Attachments (1)

fib.cpp (1.8 KB ) - added by Moritz Pflanzer <moritz@…> 6 years ago.

Download all attachments as: .zip

Change History (4)

by Moritz Pflanzer <moritz@…>, 6 years ago

Attachment: fib.cpp added

comment:1 by Raffi Enficiaud, 6 years ago

Owner: changed from Gennadiy Rozental to Raffi Enficiaud

Hi there,

would you please try by adding

using namespace bdata::monomorphic;

before the first BOOST_DATA_TEST_CASE declaration? It should solve your issue, and I will update the documentation accordingly.

comment:2 by Moritz Pflanzer <moritz@…>, 6 years ago

Sorry for the delayed reply. Yes, adding the using directive solves the problem. Thanks!

comment:3 by Raffi Enficiaud, 6 years ago

Resolution: invalid
Status: newclosed

Thanks for the feedback, closing.

Note: See TracTickets for help on using tickets.