mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
WebNotifier example
- added WebNotifier example - fixed/tidied up SOO alignment code
This commit is contained in:
@@ -399,14 +399,15 @@ private:
|
||||
|
||||
#ifdef POCO_ENABLE_CPP11
|
||||
static const unsigned sz = sizeof(Poco::Net::Impl::IPv6AddressImpl);
|
||||
typedef std::aligned_storage<sz>::type AlignerType;
|
||||
|
||||
union
|
||||
{
|
||||
std::aligned_storage<sz> a;
|
||||
char buffer[sz];
|
||||
char buffer[sz];
|
||||
AlignerType aligner;
|
||||
}
|
||||
#else // !POCO_ENABLE_CPP11
|
||||
AlignedCharArrayUnion <Poco::Net::Impl::IPv6AddressImpl,
|
||||
Poco::Net::Impl::IPv4AddressImpl>
|
||||
AlignedCharArrayUnion <Poco::Net::Impl::IPv6AddressImpl>
|
||||
#endif // POCO_ENABLE_CPP11
|
||||
_memory;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user