Ticket #6184: diff.patch

File diff.patch, 925 bytes (added by apmanol@…, 11 years ago)

patch to solve the size_t problem

  • boost/function/function_template.hpp

     
    677677
    678678    vtable_type* get_vtable() const {
    679679      return reinterpret_cast<vtable_type*>(
    680                reinterpret_cast<std::size_t>(vtable) & ~static_cast<size_t>(0x01));
     680               reinterpret_cast<std::size_t>(vtable) & ~static_cast<std::size_t>(0x01));
    681681    }
    682682
    683683    struct clear_type {};
     
    911911        if (boost::has_trivial_copy_constructor<Functor>::value &&
    912912            boost::has_trivial_destructor<Functor>::value &&
    913913            detail::function::function_allows_small_object_optimization<Functor>::value)
    914           value |= static_cast<size_t>(0x01);
     914          value |= static_cast<std::size_t>(0x01);
    915915        vtable = reinterpret_cast<detail::function::vtable_base *>(value);
    916916      } else
    917917        vtable = 0;