1 2 #include "pooledstring.h" 3 #include "generic/static.h" 4 5 #if defined( _DEBUG ) 6 7 namespace ExamplePooledString 8 { testStuff()9void testStuff(){ 10 PooledString< LazyStatic<StringPool> > a, b; 11 a = "monkey"; 12 b = "monkey"; 13 a = ""; 14 } 15 16 struct Always 17 { AlwaysExamplePooledString::Always18 Always(){ 19 testStuff(); 20 } 21 } always; 22 } 23 24 #endif