mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
gcc/linux compile
This commit is contained in:
parent
1523a87926
commit
54a92c59e5
@ -42,6 +42,7 @@
|
||||
#include "Poco/MetaProgramming.h"
|
||||
#include <algorithm>
|
||||
#include <typeinfo>
|
||||
#include <cstring>
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@ -220,7 +221,7 @@ private:
|
||||
{
|
||||
if (sizeof(Holder<ValueType>) <= POCO_SMALL_OBJECT_SIZE)
|
||||
{
|
||||
new (_placeholder.holder) Holder<ValueType>(value);
|
||||
new (reinterpret_cast<Placeholder*>(_placeholder.holder)) Holder<ValueType>(value);
|
||||
_placeholder.setLocal(true);
|
||||
}
|
||||
else
|
||||
@ -268,7 +269,7 @@ private:
|
||||
Placeholder* content() const
|
||||
{
|
||||
if(isLocal())
|
||||
return reinterpret_cast<Placeholder*>(&holder[0]);
|
||||
return reinterpret_cast<Placeholder*>(holder);
|
||||
else
|
||||
return pHolder;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user