SF items 1951604 and 1953551

[1951604] POCO refuses to compile with g++ 4.3.0
[1953551] Solaris Sun Studio 12 Apache stdcxx 64 bit

Warning: compile with target platforms not done yet!
This commit is contained in:
Aleksandar Fabijanic
2008-04-28 21:52:10 +00:00
parent 2a93c3e84f
commit e1c7bc55dd
8 changed files with 87 additions and 2 deletions

View File

@@ -47,6 +47,7 @@
#include <vector>
#include <map>
#include <cstddef>
#include <cstring>
namespace Poco {
@@ -79,7 +80,7 @@ public:
/// Creates the HashTable.
{
_entries = new HashEntryMap*[initialSize];
memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
std::memset(_entries, '\0', sizeof(HashEntryMap*)*initialSize);
}
HashTable(const HashTable& ht):
@@ -314,7 +315,7 @@ public:
UInt32 oldSize = _maxCapacity;
_maxCapacity = newSize;
_entries = new HashEntryMap*[_maxCapacity];
memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
std::memset(_entries, '\0', sizeof(HashEntryMap*)*_maxCapacity);
if (_size == 0)
{