]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - misc/mediasource/extra/netradiant-src/libs/string/pooledstring.cpp
Include netRadiant source in this GIT
[voretournament/voretournament.git] / misc / mediasource / extra / netradiant-src / libs / string / pooledstring.cpp
1
2 #include "pooledstring.h"
3 #include "generic/static.h"
4
5 #if defined(_DEBUG)
6
7 namespace ExamplePooledString
8 {
9   void testStuff()
10   {
11     PooledString< LazyStatic<StringPool> > a, b;
12     a = "monkey";
13     b = "monkey";
14     a = "";
15   }
16
17   struct Always
18   {
19     Always()
20     {
21       testStuff();
22     }
23   } always;
24 }
25
26 #endif