Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2008-06-21 13:20:21


Author: igaztanaga
Date: 2008-06-21 13:20:20 EDT (Sat, 21 Jun 2008)
New Revision: 46582
URL: http://svn.boost.org/trac/boost/changeset/46582

Log:
gcc 4.3 fixes for normal and -std=c++0x modes
Text files modified:
   trunk/libs/interprocess/proj/to-do.txt | 4 +++-
   trunk/libs/interprocess/test/adaptive_node_pool_test.cpp | 12 +++++++-----
   trunk/libs/interprocess/test/node_pool_test.cpp | 7 ++++---
   3 files changed, 14 insertions(+), 9 deletions(-)

Modified: trunk/libs/interprocess/proj/to-do.txt
==============================================================================
--- trunk/libs/interprocess/proj/to-do.txt (original)
+++ trunk/libs/interprocess/proj/to-do.txt 2008-06-21 13:20:20 EDT (Sat, 21 Jun 2008)
@@ -39,4 +39,6 @@
 
 -> add private_read_only to mapped_region to support MAP_PRIVATE plus PROT_READ
 
--> add contiguous_elements option to burst allocation
\ No newline at end of file
+-> add contiguous_elements option to burst allocation
+
+-> Completely erase is_movable in code and tests for compilers with rvalue reference
\ No newline at end of file

Modified: trunk/libs/interprocess/test/adaptive_node_pool_test.cpp
==============================================================================
--- trunk/libs/interprocess/test/adaptive_node_pool_test.cpp (original)
+++ trunk/libs/interprocess/test/adaptive_node_pool_test.cpp 2008-06-21 13:20:20 EDT (Sat, 21 Jun 2008)
@@ -10,16 +10,18 @@
 #include <boost/interprocess/detail/config_begin.hpp>
 #include "node_pool_test.hpp"
 #include <boost/interprocess/allocators/detail/adaptive_node_pool.hpp>
-
 #include <vector>
 
+using namespace boost::interprocess;
+typedef managed_shared_memory::segment_manager segment_manager_t;
+
+//Explicit specialization to catch compilation errors
+template class detail::private_adaptive_node_pool_impl<segment_manager_t>;
+
 int main ()
 {
- using namespace boost::interprocess;
- typedef managed_shared_memory::segment_manager segment_manager;
-
    typedef detail::private_adaptive_node_pool
- <segment_manager, 4, 64, 64, 5> node_pool_t;
+ <segment_manager_t, 4, 64, 64, 5> node_pool_t;
 
    if(!test::test_all_node_pool<node_pool_t>())
       return 1;

Modified: trunk/libs/interprocess/test/node_pool_test.cpp
==============================================================================
--- trunk/libs/interprocess/test/node_pool_test.cpp (original)
+++ trunk/libs/interprocess/test/node_pool_test.cpp 2008-06-21 13:20:20 EDT (Sat, 21 Jun 2008)
@@ -11,14 +11,15 @@
 #include "node_pool_test.hpp"
 #include <boost/interprocess/allocators/detail/node_pool.hpp>
 
+using namespace boost::interprocess;
+typedef managed_shared_memory::segment_manager segment_manager_t;
+template class detail::private_node_pool_impl<segment_manager_t>;
 
 
 int main ()
 {
- using namespace boost::interprocess;
- typedef managed_shared_memory::segment_manager segment_manager;
    typedef detail::private_node_pool
- <segment_manager, 4, 64> node_pool_t;
+ <segment_manager_t, 4, 64> node_pool_t;
 
    if(!test::test_all_node_pool<node_pool_t>())
       return 1;


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