Re: [Boost-bugs] [Boost C++ Libraries] #13170: BOOST_AUTO_TEST_CASE_TEMPLATE don't want typedef for list

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13170: BOOST_AUTO_TEST_CASE_TEMPLATE don't want typedef for list
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-30 22:31:55


#13170: BOOST_AUTO_TEST_CASE_TEMPLATE don't want typedef for list
---------------------------------------------+-----------------------------
  Reporter: Oleksandr Guteniev <gutenev@…> | Owner: Gennadiy
                                             | Rozental
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: test
   Version: Boost 1.61.0 | Severity: Cosmetic
Resolution: | Keywords:
---------------------------------------------+-----------------------------

Comment (by Raffi Enficiaud):

 Got it working with {{{BOOST_IDENTITY_TYPE}}} from
 http://www.boost.org/doc/libs/1_66_0/libs/utility/identity_type/doc/html/index.html:

 {{{
 #include <boost/utility/identity_type.hpp>

 BOOST_AUTO_TEST_CASE_TEMPLATE(
    my_test2,
    T,
    BOOST_IDENTITY_TYPE((boost::mpl::list<
      int,
      long,
      unsigned char
>)) )
 {
   BOOST_TEST( sizeof(T) == (unsigned)4 );
 }
 }}}

 I will update the doc accordingly.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13170#comment:3>
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-12-30 22:37:16 UTC