From 00d07000887432921e5e44ff3f43d67a89eb6307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Wed, 11 Jul 2012 22:09:37 +0000 Subject: [PATCH] Updated changeset [SVN r79430] --- doc/container.qbk | 8 ++++++ proj/to-do.txt | 6 ++++- test/flat_tree_test.cpp | 56 ++--------------------------------------- 3 files changed, 15 insertions(+), 55 deletions(-) diff --git a/doc/container.qbk b/doc/container.qbk index ee4cf42..dd1bc7d 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -614,6 +614,14 @@ use [*Boost.Container]? There are several reasons for that: [section:release_notes Release Notes] +[section:release_notes_boost_1_51_00 Boost 1.51 Release] + +* Fixed bugs + [@https://svn.boost.org/trac/boost/ticket/7114 #7114], + [@https://svn.boost.org/trac/boost/ticket/7103 #7103]. + +[endsect] + [section:release_notes_boost_1_50_00 Boost 1.50 Release] * Added Scoped Allocator Model support. diff --git a/proj/to-do.txt b/proj/to-do.txt index 1152393..072519c 100644 --- a/proj/to-do.txt +++ b/proj/to-do.txt @@ -36,4 +36,8 @@ check move if noexcept conditions in vector, deque and stable_vector Detect always equal or unequal allocators at compiler time. operator== returns true_type or false_type -change virtual functions with pointers to avoid template instantiation for every type \ No newline at end of file +change virtual functions with pointers to avoid template instantiation for every type + +Add hash for containers + +Add std:: hashing support \ No newline at end of file diff --git a/test/flat_tree_test.cpp b/test/flat_tree_test.cpp index ba3d450..c6738e2 100644 --- a/test/flat_tree_test.cpp +++ b/test/flat_tree_test.cpp @@ -26,7 +26,7 @@ using namespace boost::container; namespace boost { namespace container { -/* + //Explicit instantiation to detect compilation errors //flat_map @@ -115,7 +115,7 @@ template class flat_multiset , std::less , std::allocator >; -*/ + }} //boost::container @@ -627,55 +627,3 @@ int main() } #include - -/* -#include -#include -#include -#include -#include - -struct Request -{ - Request() {}; - - //Move semantics... - Request(BOOST_RV_REF(Request) r) : rvals() //Move constructor - { - rvals.swap(r.rvals); - }; - - Request& operator=(BOOST_RV_REF(Request) r) //Move assignment - { - if (this != &r){ - rvals.swap(r.rvals); - } - return *this; - }; - - // Values I want to be moved, not copied. - boost::container::vector rvals; - - private: - // Mark this class movable but not copyable - BOOST_MOVABLE_BUT_NOT_COPYABLE(Request) -}; - -typedef boost::container::flat_map Requests; -//typedef boost::container::map Requests2; - -int -main() { - Requests req; - - Requests::value_type v; - std::pair ret = req.insert( boost::move(v)); - //std::cout << "Insert success for req: " << ret.second << std::endl; - - //Requests2 req2; - //std::pair ret2 = req2.insert( Requests2::value_type( 7, Request() ) ); - //std::cout << "Insert success for req2: " << ret2.second << std::endl; - - return 0; -} -*/