Ticket #1416: function_template.patch

File function_template.patch, 819 bytes (added by Richard Webb <Richard.Webb@…>, 15 years ago)
  • function_template.hpp

     
    125125
    126126        {
    127127          FunctionObj* f;
     128
     129#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     130#pragma warning (suppress : 4127)
     131#endif
    128132          if (function_allows_small_object_optimization<FunctionObj>::value)
    129133            f = reinterpret_cast<FunctionObj*>(&function_obj_ptr.data);
    130134          else
     
    146150
    147151        {
    148152          FunctionObj* f;
     153
     154#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
     155#pragma warning (suppress : 4127)
     156#endif
    149157          if (function_allows_small_object_optimization<FunctionObj>::value)
    150158            f = reinterpret_cast<FunctionObj*>(&function_obj_ptr.data);
    151159          else