Ticket #6947: dynamic_bitset.hpp.patch
File dynamic_bitset.hpp.patch, 1.8 KB (added by , 10 years ago) |
---|
-
boost/dynamic_bitset/dynamic_bitset.hpp
39 39 #include "boost/static_assert.hpp" 40 40 #include "boost/limits.hpp" 41 41 #include "boost/pending/lowest_bit.hpp" 42 #include "boost/move/move.hpp" 42 43 43 44 44 45 namespace boost { … … 207 208 void swap(dynamic_bitset& b); 208 209 dynamic_bitset& operator=(const dynamic_bitset& b); 209 210 211 # ifndef BOOST_NO_RVALUE_REFERENCES 212 //========================================================================== 213 //= Move semantics 214 //========================================================================== 215 216 dynamic_bitset(dynamic_bitset&& src); 217 218 dynamic_bitset& operator = (dynamic_bitset&& src) ; 219 //========================================================================== 220 # endif // BOOST_NO_RVALUE_REFERENCES 221 210 222 allocator_type get_allocator() const; 211 223 212 224 // size changing operations … … 633 645 return *this; 634 646 } 635 647 648 # ifndef BOOST_NO_RVALUE_REFERENCES 649 650 // Move semantics 636 651 template <typename Block, typename Allocator> 652 inline dynamic_bitset<Block, Allocator>::dynamic_bitset(dynamic_bitset<Block, Allocator>&& src) 653 : m_bits(boost::move(src.m_bits)), m_num_bits(src.m_num_bits) 654 { 655 src.m_num_bits = 0; 656 } 657 658 template <typename Block, typename Allocator> 659 inline dynamic_bitset<Block, Allocator>& dynamic_bitset<Block, Allocator>:: 660 operator = (dynamic_bitset<Block, Allocator>&& src) 661 { 662 swap(src); 663 return *this; 664 } 665 666 # endif // BOOST_NO_RVALUE_REFERENCES 667 668 template <typename Block, typename Allocator> 637 669 inline typename dynamic_bitset<Block, Allocator>::allocator_type 638 670 dynamic_bitset<Block, Allocator>::get_allocator() const 639 671 {