std::numeric_limits isn't working...

This commit is contained in:
beard%netscape.com 2000-05-09 04:26:44 +00:00
parent dd7eebdfff
commit 7b293d0e75
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ namespace JavaScript {
static void construct(pointer p, const T &val) { new(p) T(val);}
static void destroy(pointer p) { p->~T(); }
#ifdef __GNUC__
#if defined(__GNUC__) || defined(_WIN32)
static size_type max_size() { return size_type(-1) / sizeof(T); }
#else
static size_type max_size() { return std::numeric_limits<size_type>::max() / sizeof(T); }

View File

@ -132,7 +132,7 @@ namespace JavaScript {
static void construct(pointer p, const T &val) { new(p) T(val);}
static void destroy(pointer p) { p->~T(); }
#ifdef __GNUC__
#if defined(__GNUC__) || defined(_WIN32)
static size_type max_size() { return size_type(-1) / sizeof(T); }
#else
static size_type max_size() { return std::numeric_limits<size_type>::max() / sizeof(T); }