mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
cb67131f78
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@28 8a3a26a2-13c4-0310-b231-cf6edde360e5
26 lines
No EOL
319 B
C++
26 lines
No EOL
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 |