]> icculus.org git repositories - divverent/netradiant.git/blob - libs/string/pooledstring.cpp
initial
[divverent/netradiant.git] / 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