Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85998 - trunk/libs/container/test
From: igaztanaga_at_[hidden]
Date: 2013-09-29 07:38:47


Author: igaztanaga
Date: 2013-09-29 07:38:47 EDT (Sun, 29 Sep 2013)
New Revision: 85998
URL: http://svn.boost.org/trac/boost/changeset/85998

Log:
Fixed error for test_allocator::max_size(), now returns std::size_t(-1)

Text files modified:
   trunk/libs/container/test/scoped_allocator_adaptor_test.cpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/libs/container/test/scoped_allocator_adaptor_test.cpp
==============================================================================
--- trunk/libs/container/test/scoped_allocator_adaptor_test.cpp Sun Sep 29 07:37:30 2013 (r85997)
+++ trunk/libs/container/test/scoped_allocator_adaptor_test.cpp 2013-09-29 07:38:47 EDT (Sun, 29 Sep 2013) (r85998)
@@ -68,7 +68,7 @@
    }
 
    std::size_t max_size() const
- { return std::size_t(Id); }
+ { return std::size_t(-1); }
 
    T* allocate(std::size_t n)
    { return (T*)::new char[n*sizeof(T)]; }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk