Lumiera
0.pre.03
»edit your freedom«
|
OpaqueHolder.template get()
would allow for such conversions. This is similar to Ticket #141, and actually based on the same code as variant.hpp (access-casted.hpp) Definition at line 120 of file opaque-holder-test.cpp.
Private Member Functions | |
void | checkHandling (TestList &objs) |
void | checkSpecialSubclass () |
TestList | createDummies () |
virtual void | run (Arg) |
Static Private Member Functions | |
static void | reAccess (Opaque &elm) |
|
inlineprivate |
Definition at line 161 of file opaque-holder-test.cpp.
|
inlineprivate |
When a subclass requires more storage than the base class or Interface, we need to create a custom OpaqueHolder, specifying the actually necessary storage. Such a custom OpaqueHolder behaves exactly like the standard variant, but there is protection against accidentally using a standard variant to hold an instance of the larger subclass.
Definition at line 250 of file opaque-holder-test.cpp.
References lib::test::anonymous_namespace{opaque-holder-test.cpp}::_ALIGN_.