Subject: [Boost-bugs] [Boost C++ Libraries] #5282: Test fixtures do not support virtual inheritance
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-08 14:53:48
#5282: Test fixtures do not support virtual inheritance
-------------------------------------+--------------------------------------
Reporter: tye.zdrojewski@⦠| Owner: rogeeff
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: test
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
-------------------------------------+--------------------------------------
A typical use of fixtures for a test suite is to make it a subclass of the
class under test (CUT) so that protected members can be accessed.
However, if the CUT has a virtual base class in its inheritance chain, the
call to that class's constructor cannot be specified, because the fixture
macros introduce another level of inheritance (sub-struct).
This means that we have to jump through some hoops to get to protected
members.
It would be nice to have an argument to the FIXTURE macros that would
allow the tester to specify some or all of the initialization list for the
final class/struct in the inheritance chain.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5282> 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:05 UTC