![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Go to the source code of this file.
the following test composes both an interface and the corresponding implementation by instantiating "building block" templates over a collection of types. The resulting class ends up inheriting a virtual function instantiated for each of the types in the list. (remember: normally the number and signature of all virtual functions need to be absolutely fixed in the class definition)
Definition in file generator-test.cpp.
#include "lib/test/run.hpp"#include "lib/format-string.hpp"#include "lib/meta/generator.hpp"#include <iostream>#include <string>Functions | |
| _Pragma ("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"") namespace lib | |
| _Pragma | ( | "GCC diagnostic push" | ) |
template for generating lots of different test types
Use this building block for assembling an abstract interface
Use this building block for chaining corresponding implementation classes.
Register this test class...
Definition at line 46 of file generator-test.cpp.
References INSTANCEOF, and LAUNCHER.