Line data Source code
1 : #include <cpp_template/derived.hpp>
2 :
3 : #include <iostream>
4 :
5 0 : std::string class_types_to_string(class_type t)
6 : {
7 0 : switch (t) {
8 : case class_type::INTERFACE:
9 0 : return "INTERFACE";
10 : case class_type::ABSTRACT:
11 0 : return "ABSTRACT";
12 : case class_type::NORMAL:
13 0 : return "NORMAL";
14 : default:
15 0 : return "unknown class type";
16 : }
17 : }
18 :
19 1 : void derived::init()
20 : {
21 1 : std::cout << "hello from ::derived::init()" << std::endl;
22 4 : }
|