#include <stlsoft/util/constraints.hpp>
List of all members.
Detailed Description
template<typename D, typename B>
struct stlsoft::must_have_base< D, B >
Constraint to ensure that the one type is convertible to another via inheritance.
- Parameters:
-
| D | The derived type |
| B | The base type |
It may be used as follows:
- Note:
- This is borrowed from Bjarne Stroustrup's idea as posted to comp.lang.c++.moderated 17th February 2001.
- See also:
- stlsoft::must_be_derived
The documentation for this struct was generated from the following file: