initial
git-svn-id: svn://svn.icculus.org/netradiant/trunk@1 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
26
libs/string/pooledstring.cpp
Normal file
26
libs/string/pooledstring.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
#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
|
||||
Reference in New Issue
Block a user