Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1596: [unordered] non-standard prototype of malloc_allocator<>::allocate (size_t, const_pointer)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-01-23 11:17:58
#1596: [unordered] non-standard prototype of malloc_allocator<>::allocate (size_t,
const_pointer)
--------------------------------------+-------------------------------------
Reporter: faridz_at_[hidden] | Owner: danieljames
Type: Bugs | Status: new
Milestone: Boost 1.35.0 | Component: unordered
Version: Boost Development Trunk | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by faridz_at_[hidden]):
Another errors in unordered tests:
{{{
simple_tests.cpp
D:\stdcxx\4.2.x\include\loc/_ctype.h(371) : warning C4127: conditional
expression is constant
D:\stdcxx\4.2.x\include\loc/_ctype.h(576) : warning C4127: conditional
expression is constant
..\libs\unordered\test\unordered\simple_tests.cpp(88) : error C3861:
'srand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(102) : error C3861:
'rand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(102) : error C3861:
'rand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(112) : error C3861:
'rand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(112) : error C3861:
'rand': identifier not found
D:\stdcxx\4.2.x\include\rw/_pair.h(88) : warning C4512:
'std::pair<_TypeT,_TypeU>' : assignment operator could not be generated
with
[
_TypeT=const int,
_TypeU=int
]
..\libs\unordered\test\unordered\simple_tests.cpp(114) : see
reference to class template instantiation 'std::pair<_TypeT,_TypeU>' being
compiled
with
[
_TypeT=const int,
_TypeU=int
]
..\libs\unordered\test\unordered\simple_tests.cpp(120) : error C3861:
'rand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(120) : error C3861:
'rand': identifier not found
..\libs\unordered\test\unordered\simple_tests.cpp(122) : error C3861:
'rand': identifier not found
}}}
The patch:
{{{
Index: libs/unordered/test/unordered/simple_tests.cpp
===================================================================
--- libs/unordered/test/unordered/simple_tests.cpp (revision 42908)
+++ libs/unordered/test/unordered/simple_tests.cpp (working copy)
@@ -8,6 +8,7 @@
#include <boost/unordered_set.hpp>
#include <boost/unordered_map.hpp>
#include <boost/detail/lightweight_test.hpp>
+#include <stdlib.h> // for srand(), rand()
#include <algorithm>
#include "../helpers/equivalent.hpp"
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1596#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC