From 2e2fac9291f80973dd0e17d2d837fdc102f22cef Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Mon, 27 Apr 2015 17:12:31 -0700 Subject: [PATCH] Revert "removed dead code from vector.hpp" This reverts commit 423c6d80760ba86f6a725472019ee351826840c5. --- include/boost/serialization/vector.hpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/include/boost/serialization/vector.hpp b/include/boost/serialization/vector.hpp index a4fa314e..7f6a3916 100644 --- a/include/boost/serialization/vector.hpp +++ b/include/boost/serialization/vector.hpp @@ -149,27 +149,6 @@ inline void load( // message like "default const t.reserve(count); vector_load_impl::invoke(ar, t, count, item_version); -/* - if(detail::is_default_constructible::value){ - BOOST_STATIC_ASSERT(std::is_default_constructible::value); - BOOST_STATIC_ASSERT(boost::serialization::detail::is_default_constructible::value); - t.resize(count); - typename std::vector::iterator hint; - hint = t.begin(); - while(count-- > 0){ - ar >> boost::serialization::make_nvp("item", *hint++); - } - } - else{ - t.clear(); - while(count-- > 0){ - detail::stack_construct u(ar, item_version); - ar >> boost::serialization::make_nvp("item", u.reference()); - t.push_back(u.reference()); - ar.reset_object_address(& t.back() , & u.reference()); - } - } -*/ } // the optimized versions