removed SmallObjectAllocator

removed SmallObjectAllocator (moved to separate branch) and disabled
default SOO for Any and Dynamic::Var
This commit is contained in:
aleks-f
2013-04-03 20:56:23 -05:00
parent 8c2d5dfed7
commit acbcfc140a
18 changed files with 11 additions and 428 deletions

View File

@@ -60,7 +60,11 @@ template <class> class VarHolderImpl;
}
template <typename PlaceholderT, unsigned int SizeV = POCO_SMALL_OBJECT_SIZE>
template <typename PlaceholderT
#ifndef POCO_NO_SOO
, unsigned int SizeV = POCO_SMALL_OBJECT_SIZE
#endif
>
union Placeholder
/// ValueHolder union (used by Poco::Any and Poco::Dynamic::Var for small
/// object optimization).
@@ -112,7 +116,9 @@ public:
#endif
PlaceholderT* pHolder;
#ifndef POCO_NO_SOO
mutable unsigned char holder[SizeV + 1];
#endif
friend class Any;
friend class Dynamic::Var;