mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
gcc/linux compile
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user