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