Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12712: BOOST_AUTO_TEST_SUITE: Generate unique names by using __COUNTER__
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-02-01 07:34:47
#12712: BOOST_AUTO_TEST_SUITE: Generate unique names by using __COUNTER__
--------------------------------------+------------------------
Reporter: ki.stfu@⦠| Owner: renficiaud
Type: Patches | Status: new
Milestone: To Be Determined | Component: test
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+------------------------
Comment (by ki.stfu@â¦):
I don't think I'm doing anything illegal and in my case the game is worth
the candle.
`__COUNTER__` is supported by major compilers (MSVC, Clang, GCC) and is
already used in Boost library. Moreover, it suits better for generating
unique names than `__LINE__`.
So why we can't define `BOOST_TEST_UNIQUE_NUMBER` macro, which refers to
`__COUNTER__` or (if it's not available to) `__LINE__`?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12712#comment:9> 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:21 UTC