Ticket #1507: variant2.patch
File variant2.patch, 3.8 KB (added by , 15 years ago) |
---|
-
detail/apply_visitor_binary.hpp
63 63 return visitor_(value1_, value2); 64 64 } 65 65 66 private: 67 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 68 apply_visitor_binary_invoke& operator=(const apply_visitor_binary_invoke&); 66 69 }; 67 70 68 71 template <typename Visitor, typename Visitable2> … … 100 103 return boost::apply_visitor(invoker, visitable2_); 101 104 } 102 105 106 private: 107 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 108 apply_visitor_binary_unwrap& operator=(const apply_visitor_binary_unwrap&); 103 109 }; 104 110 105 111 }} // namespace detail::variant -
detail/apply_visitor_delayed.hpp
72 72 return apply_visitor(visitor_, visitable1, visitable2); 73 73 } 74 74 75 private: 76 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 77 apply_visitor_delayed_t& operator=(const apply_visitor_delayed_t&); 75 78 }; 76 79 77 80 template <typename Visitor> -
detail/variant_io.hpp
64 64 out_ << operand; 65 65 } 66 66 67 private: 68 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 69 printer& operator=(const printer&); 67 70 }; 68 71 69 72 }} // namespace detail::variant -
variant.hpp
290 290 { 291 291 operand.~T(); 292 292 293 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x0551)) 293 #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x0551)) || \ 294 BOOST_WORKAROUND(BOOST_MSVC, >= 1300) 294 295 operand; // suppresses warnings 295 296 #endif 296 297 … … 529 530 530 531 #endif // MSVC6 workaround 531 532 533 private: 534 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 535 direct_assigner& operator=(const direct_assigner&); 536 532 537 }; 533 538 534 539 /////////////////////////////////////////////////////////////////////////////// … … 647 652 BOOST_VARIANT_AUX_RETURN_VOID; 648 653 } 649 654 655 private: 656 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 657 backup_assigner& operator=(const backup_assigner&); 650 658 }; 651 659 652 660 /////////////////////////////////////////////////////////////////////////////// … … 684 692 ::boost::detail::variant::move_swap( operand, other ); 685 693 } 686 694 695 private: 696 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 697 swap_with& operator=(const swap_with&); 687 698 }; 688 699 689 700 /////////////////////////////////////////////////////////////////////////////// … … 740 751 return Comp()(lhs_content, rhs_content); 741 752 } 742 753 754 private: 755 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 756 comparer& operator=(const comparer&); 743 757 }; 744 758 745 759 /////////////////////////////////////////////////////////////////////////////// … … 891 905 return internal_visit( operand.get(), 1L ); 892 906 } 893 907 908 private: 909 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 910 invoke_visitor& operator=(const invoke_visitor&); 894 911 }; 895 912 896 913 }} // namespace detail::variant … … 1541 1558 BOOST_VARIANT_AUX_RETURN_VOID; 1542 1559 } 1543 1560 1561 private: 1562 //Silence 4512 (assignment operator could not be generated) warning on VC8/9 1563 assigner& operator=(const assigner&); 1544 1564 }; 1545 1565 1546 1566 friend class assigner;