aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected
blob: c7db776d277d0bb001c6ca48d0eb3c914bda10d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef PROJECT_INTERNAL_THECLASS_H
#define PROJECT_INTERNAL_THECLASS_H

namespace Project {
namespace Internal {

class TheClass
{
public:
    TheClass() = default;
    
    void defined();
    void undefined();
    
    template<typename T> T defaultValue() const;
private:
    class Private;
    class Undefined;
    static inline bool doesNotNeedDefinition = true;
    static bool needsDefinition;
    int m_value = 0;
};

template<typename T> T TheClass::defaultValue() const { return T(); }

} // namespace Internal
} // namespace Project

#endif // PROJECT_INTERNAL_THECLASS_H