netradiant-custom/libs/string/pooledstring.cpp
2012-03-27 12:03:21 +02:00

24 lines
281 B
C++

#include "pooledstring.h"
#include "generic/static.h"
#if defined( _DEBUG )
namespace ExamplePooledString
{
void testStuff(){
PooledString< LazyStatic<StringPool> > a, b;
a = "monkey";
b = "monkey";
a = "";
}
struct Always
{
Always(){
testStuff();
}
} always;
}
#endif