[Boost-bugs] [Boost C++ Libraries] #11911: BOOST_TEST macro's argument must be put between brackets

Subject: [Boost-bugs] [Boost C++ Libraries] #11911: BOOST_TEST macro's argument must be put between brackets
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-14 15:19:05


#11911: BOOST_TEST macro's argument must be put between brackets
------------------------------+---------------------
 Reporter: anonymous | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.60.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 This program doesn't work

 {{{
 #define BOOST_TEST_MODULE test
 #include <boost/test/included/unit_test.hpp>

 struct B {};
 struct A {
         bool operator ==(const B &b) {
                 return true;
         }
 };

 BOOST_AUTO_TEST_CASE(test_case) {
         A a;
         B b;
         BOOST_TEST(a == b);
         // BOOST_TEST((a == b)); // this version works
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11911>
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