netradiant-custom/libs/string/pooledstring.cpp
rpolzer 107765f0e4 initial
git-svn-id: svn://svn.icculus.org/netradiant/trunk@1 61c419a2-8eb2-4b30-bcec-8cead039b335
2008-09-13 18:28:57 +00:00

26 lines
319 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