Ticket #6184: diff.patch
File diff.patch, 925 bytes (added by , 11 years ago) |
---|
-
boost/function/function_template.hpp
677 677 678 678 vtable_type* get_vtable() const { 679 679 return reinterpret_cast<vtable_type*>( 680 reinterpret_cast<std::size_t>(vtable) & ~static_cast<s ize_t>(0x01));680 reinterpret_cast<std::size_t>(vtable) & ~static_cast<std::size_t>(0x01)); 681 681 } 682 682 683 683 struct clear_type {}; … … 911 911 if (boost::has_trivial_copy_constructor<Functor>::value && 912 912 boost::has_trivial_destructor<Functor>::value && 913 913 detail::function::function_allows_small_object_optimization<Functor>::value) 914 value |= static_cast<s ize_t>(0x01);914 value |= static_cast<std::size_t>(0x01); 915 915 vtable = reinterpret_cast<detail::function::vtable_base *>(value); 916 916 } else 917 917 vtable = 0;