blob: bf6da53d9c004c9d079dd41f2e27dd1ca0d84a80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <util/generic/singleton.h>
struct X {
inline X() {
}
char Buf[100];
};
char& FF1() noexcept {
static X x;
return x.Buf[0];
}
char& FF2() noexcept {
return Singleton<X>()->Buf[0];
}
|