blob: 93f0d47a81f58da814d7084d41d5f27f61414b7a (
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
30
|
#ifndef THE_HEADER_H
#define THE_HEADER_H
namespace Project {
namespace Internal {
class SomeClass {};
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(); }
}
}
#endif
|