1 | class Trivial { |
---|---|
2 | public: |
3 | Trivial(int input) : m_int(input) {} |
4 | private: |
5 | int m_int; |
6 | }; |
7 | |
8 | class Foo { |
9 | private: |
10 | Trivial m_trivial = Trivial(100); // Set the before constructor breakpoint here |
11 | |
12 | public: |
13 | Foo(int input) { |
14 | ++input; |
15 | } |
16 | |
17 | private: |
18 | Trivial m_other_trivial = Trivial(200); // Set the after constructor breakpoint here |
19 | }; |
20 | |
21 | int main() { |
22 | Foo myFoo(10); // Set a breakpoint here to get started |
23 | return 0; |
24 | } |
25 |