From 290f87b813fd8318d3c6f42f3d739ab50af3ef5f Mon Sep 17 00:00:00 2001 From: redpony Date: Tue, 28 Sep 2010 18:54:04 +0000 Subject: opt git-svn-id: https://ws10smt.googlecode.com/svn/trunk@660 ec762483-ff6d-05da-a07a-a48fb63a330f --- utils/sparse_vector.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/sparse_vector.h b/utils/sparse_vector.h index c5e18b96..cce6c8a4 100644 --- a/utils/sparse_vector.h +++ b/utils/sparse_vector.h @@ -525,7 +525,7 @@ private: if (values_.find(0) != values_.end()) { ++it; --eff_size; } ar & eff_size; while (it != this->end()) { - const std::pair wire_pair(FD::Convert(it->first), it->second); + const std::pair wire_pair(FD::Convert(it->first), it->second); ar & wire_pair; ++it; } @@ -545,6 +545,10 @@ private: #endif }; +#if HAVE_BOOST_ARCHIVE_TEXT_OARCHIVE_HPP +BOOST_CLASS_TRACKING(SparseVector,track_never) +#endif + template inline void swap(SparseVector &a,SparseVector &b) { a.swap(b); -- cgit v1.2.3