Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "LibraryWrapper.hpp"
- #include "Interfaces.hpp"
- class Demo: public LibraryWrapper<IDemo> {
- public:
- Demo(): LibraryWrapper<IDemo>("Demo") {
- std::cout << "WrappedDemo instance created" << std::endl;
- }
- ~Demo() {
- std::cout << "WrappedDemo instance destroyed" << std::endl;
- }
- };
- int main() {
- Demo* demo = new Demo();
- Demo* another = new Demo();
- demo->foo();
- std::cout << "Zahl: " << demo->zahl << std::endl;
- delete demo;
- delete another;
- }
Advertisement
Add Comment
Please, Sign In to add comment