added missing files
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@28 8a3a26a2-13c4-0310-b231-cf6edde360e5
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