Update of /cvsroot/boost/boost/boost/interprocess/allocators
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19387/allocators
Modified Files:
adaptive_pool.hpp allocation_type.hpp allocator.hpp
cached_adaptive_pool.hpp cached_node_allocator.hpp
node_allocator.hpp private_adaptive_pool.hpp
private_node_allocator.hpp
Log Message:
Changes to correct regression tests for intel-win-9.1 & cw-9.4
Index: adaptive_pool.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/allocators/adaptive_pool.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- adaptive_pool.hpp 4 May 2007 21:10:02 -0000 1.1
+++ adaptive_pool.hpp 12 May 2007 12:51:19 -0000 1.2
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
Index: allocation_type.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/allocation_type.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- allocation_type.hpp 4 May 2007 20:53:07 -0000 1.3
+++ allocation_type.hpp 12 May 2007 12:51:19 -0000 1.4
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
Index: allocator.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/interprocess/allocators/allocator.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- allocator.hpp 4 May 2007 20:53:07 -0000 1.3
+++ allocator.hpp 12 May 2007 12:51:19 -0000 1.4
@@ -1,6 +1,6 @@
///////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -61,7 +61,7 @@
/*!Typedef to const void pointer */
typedef typename
- detail::template pointer_to_other
+ detail::pointer_to_other
<aux_pointer_t, const void>::type cvoid_ptr;
/*!Pointer to the allocator*/
@@ -130,6 +130,7 @@
Throws boost::interprocess::bad_alloc if there is no enough memory*/
pointer allocate(size_type count, cvoid_ptr hint = 0)
{
+ (void)hint;
if(count > ((size_type)-1)/sizeof(value_type))
throw bad_alloc();
return pointer((value_type*)mp_mngr->allocate(count*sizeof(value_type)));
Index: cached_adaptive_pool.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/cached_adaptive_pool.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cached_adaptive_pool.hpp 4 May 2007 21:10:02 -0000 1.1
+++ cached_adaptive_pool.hpp 12 May 2007 12:51:19 -0000 1.2
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -189,6 +189,7 @@
Throws boost::interprocess::bad_alloc if there is no enough memory*/
pointer allocate(size_type count, cvoid_pointer hint = 0)
{
+ (void)hint;
if(count > ((size_type)-1)/sizeof(value_type))
throw bad_alloc();
typedef detail::shared_adaptive_node_pool
@@ -241,8 +242,7 @@
friend void swap(self_t &alloc1, self_t &alloc2)
{
detail::do_swap(alloc1.mp_node_pool, alloc2.mp_node_pool);
- detail::do_swap(alloc1.mp_cached, alloc2.mp_cached);
- detail::do_swap(alloc1.m_cached_nodes, alloc2.m_cached_nodes);
+ alloc1.m_cached_nodes.swap(alloc2.m_cached_nodes);
detail::do_swap(alloc1.m_max_cached_nodes, alloc2.m_max_cached_nodes);
}
Index: cached_node_allocator.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/cached_node_allocator.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cached_node_allocator.hpp 4 May 2007 20:53:07 -0000 1.3
+++ cached_node_allocator.hpp 12 May 2007 12:51:19 -0000 1.4
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -186,7 +186,8 @@
/*!Allocate memory for an array of count elements.
Throws boost::interprocess::bad_alloc if there is no enough memory*/
pointer allocate(size_type count, cvoid_pointer hint = 0)
- {
+ {
+ (void)hint;
if(count > ((size_type)-1)/sizeof(value_type))
throw bad_alloc();
typedef detail::shared_node_pool
@@ -239,8 +240,7 @@
friend void swap(self_t &alloc1, self_t &alloc2)
{
detail::do_swap(alloc1.mp_node_pool, alloc2.mp_node_pool);
- detail::do_swap(alloc1.mp_cached, alloc2.mp_cached);
- detail::do_swap(alloc1.m_cached_nodes, alloc2.m_cached_nodes);
+ alloc1.m_cached_nodes.swap(alloc2.m_cached_nodes);
detail::do_swap(alloc1.m_max_cached_nodes, alloc2.m_max_cached_nodes);
}
Index: node_allocator.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/node_allocator.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- node_allocator.hpp 4 May 2007 20:53:07 -0000 1.4
+++ node_allocator.hpp 12 May 2007 12:51:19 -0000 1.5
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
Index: private_adaptive_pool.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/private_adaptive_pool.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- private_adaptive_pool.hpp 4 May 2007 21:10:02 -0000 1.1
+++ private_adaptive_pool.hpp 12 May 2007 12:51:19 -0000 1.2
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -168,7 +168,8 @@
//!Allocate memory for an array of count elements.
//!Throws boost::interprocess::bad_alloc if there is no enough memory
pointer allocate(size_type count, cvoid_pointer hint = 0)
- {
+ {
+ (void)hint;
if(count > ((size_type)-1)/sizeof(value_type))
throw bad_alloc();
//----------------------------------------------------------
Index: private_node_allocator.hpp
===================================================================
RCS file:
/cvsroot/boost/boost/boost/interprocess/allocators/private_node_allocator.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- private_node_allocator.hpp 4 May 2007 20:53:07 -0000 1.3
+++ private_node_allocator.hpp 12 May 2007 12:51:19 -0000 1.4
@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
-// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
+// (C) Copyright Ion Gaztanaga 2005-2007. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -169,7 +169,8 @@
//!Allocate memory for an array of count elements.
//!Throws boost::interprocess::bad_alloc if there is no enough memory
pointer allocate(size_type count, cvoid_pointer hint = 0)
- {
+ {
+ (void)hint;
if(count > ((size_type)-1)/sizeof(value_type))
throw bad_alloc();
//----------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs