MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / Type2

Class Type2

src/test_module.cpp:43–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43class Type2
44{
45 public:
46 Type2(TestBaseType t_bt)
47 : m_bt(std::move(t_bt)),
48 m_str("Hello World")
49 {
50 }
51
52 int get_val() const
53 {
54 return m_bt.val;
55 }
56
57
58 const char *get_str() const
59 {
60 return m_str.c_str();
61 }
62
63 private:
64 TestBaseType m_bt;
65 std::string m_str;
66};
67
68enum TestEnum
69{

Calls

no outgoing calls