*** misc/boost-1.30.2/boost/bind.hpp Tue Oct 15 12:51:34 2002 --- misc/build/boost-1.30.2/boost/bind.hpp Thu Jan 26 17:10:47 2006 *************** *** 5,10 **** --- 5,17 ---- #pragma once #endif + #if defined(_MSC_VER) && !defined(BOOST_MEM_FN_ENABLE_CDECL) + // enable support for __cdecl (SAL_CALL) C++-UNO interface methods; + // makes sense to shift this to command line some day: + // -DBOOST_MEM_FN_ENABLE_CDECL + #define BOOST_MEM_FN_ENABLE_CDECL + #endif + // // bind.hpp - binds function objects to arguments // *************** *** 1472,1477 **** --- 1479,1496 ---- #undef BOOST_BIND_MF_NAME #undef BOOST_BIND_MF_CC + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_BIND_MF_NAME(X) X##_cdecl + #define BOOST_BIND_MF_CC __cdecl + + #include + + #undef BOOST_BIND_MF_NAME + #undef BOOST_BIND_MF_CC + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_BIND_MF_NAME(X) X##_stdcall *** misc/boost-1.30.2/boost/function/function_template.hpp Fri Feb 7 15:03:36 2003 --- misc/build/boost-1.30.2/boost/function/function_template.hpp Wed Mar 8 20:10:22 2006 *************** *** 15,20 **** --- 15,23 ---- // Note: this header is a header template and must NOT have multiple-inclusion // protection. + #if defined __GNUC__ + #pragma GCC system_header + #endif #include #define BOOST_FUNCTION_TEMPLATE_PARMS BOOST_PP_ENUM_PARAMS(BOOST_FUNCTION_NUM_ARGS, typename T) *************** *** 395,401 **** invoker = 0; } ! #if (defined __SUNPRO_CC) && (__SUNPRO_CC <= 0x530) && !(defined BOOST_NO_COMPILER_CONFIG) // Sun C++ 5.3 can't handle the safe_bool idiom, so don't use it operator bool () const { return !this->empty(); } #else --- 398,404 ---- invoker = 0; } ! #if (defined __SUNPRO_CC) // workaround opt bug when compiling with -xO3 // Sun C++ 5.3 can't handle the safe_bool idiom, so don't use it operator bool () const { return !this->empty(); } #else *************** *** 443,451 **** R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! invoker_type; ! invoker = &invoker_type::invoke; function_base::manager = &detail::function::functor_manager::manage; function_base::functor = --- 446,454 ---- R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! lcl_invoker_type; ! invoker = &lcl_invoker_type::invoke; function_base::manager = &detail::function::functor_manager::manage; function_base::functor = *************** *** 476,491 **** R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! invoker_type; ! invoker = &invoker_type::invoke; function_base::manager = &detail::function::functor_manager< FunctionObj, Allocator>::manage; #ifndef BOOST_NO_STD_ALLOCATOR typedef typename Allocator::template rebind::other ! allocator_type; ! typedef typename allocator_type::pointer pointer_type; ! allocator_type allocator; pointer_type copy = allocator.allocate(1); allocator.construct(copy, f); --- 479,494 ---- R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! lcl_invoker_type; ! invoker = &lcl_invoker_type::invoke; function_base::manager = &detail::function::functor_manager< FunctionObj, Allocator>::manage; #ifndef BOOST_NO_STD_ALLOCATOR typedef typename Allocator::template rebind::other ! lcl_allocator_type; ! typedef typename lcl_allocator_type::pointer pointer_type; ! lcl_allocator_type allocator; pointer_type copy = allocator.allocate(1); allocator.construct(copy, f); *************** *** 510,518 **** R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! invoker_type; ! invoker = &invoker_type::invoke; function_base::manager = &detail::function::trivial_manager; function_base::functor = function_base::manager( --- 513,521 ---- R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! lcl_invoker_type; ! invoker = &lcl_invoker_type::invoke; function_base::manager = &detail::function::trivial_manager; function_base::functor = function_base::manager( *************** *** 532,539 **** R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! invoker_type; ! invoker = &invoker_type::invoke; function_base::manager = &detail::function::trivial_manager; function_base::functor = detail::function::make_any_pointer(this); } --- 535,542 ---- R BOOST_FUNCTION_COMMA BOOST_FUNCTION_TEMPLATE_ARGS >::type ! lcl_invoker_type; ! invoker = &lcl_invoker_type::invoke; function_base::manager = &detail::function::trivial_manager; function_base::functor = detail::function::make_any_pointer(this); } *** misc/boost-1.30.2/boost/function.hpp Fri Feb 14 16:34:39 2003 --- misc/build/boost-1.30.2/boost/function.hpp Thu Jan 26 17:10:47 2006 *************** *** 16,21 **** --- 16,26 ---- // William Kempf, Jesse Jones and Karl Nelson were all very helpful in the // design of this library. + #if defined _MSC_VER + #pragma warning(push) + #pragma warning(disable: 4668) // "id is not defined as a preprocessor macro" + #endif + #include #include *************** *** 68,70 **** --- 73,79 ---- # include BOOST_PP_ITERATE() # undef BOOST_PP_ITERATION_PARAMS_1 #endif + + #if defined _MSC_VER + #pragma warning(pop) + #endif *** misc/boost-1.30.2/boost/mem_fn.hpp Fri Dec 20 19:14:59 2002 --- misc/build/boost-1.30.2/boost/mem_fn.hpp Thu Jan 26 17:10:47 2006 *************** *** 5,10 **** --- 5,17 ---- #pragma once #endif + #if defined(_MSC_VER) && !defined(BOOST_MEM_FN_ENABLE_CDECL) + // enable support for __cdecl (SAL_CALL) C++-UNO interface methods; + // makes sense to shift this to command line some day: + // -DBOOST_MEM_FN_ENABLE_CDECL + #define BOOST_MEM_FN_ENABLE_CDECL + #endif + // // mem_fn.hpp - a generalization of std::mem_fun[_ref] // *************** *** 46,51 **** --- 53,70 ---- #undef BOOST_MEM_FN_CC #undef BOOST_MEM_FN_NAME + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl + #define BOOST_MEM_FN_CC __cdecl + + #include + + #undef BOOST_MEM_FN_CC + #undef BOOST_MEM_FN_NAME + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_MEM_FN_NAME(X) inner_##X##_stdcall *************** *** 87,92 **** --- 106,123 ---- #undef BOOST_MEM_FN_CC #undef BOOST_MEM_FN_NAME + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_MEM_FN_NAME(X) inner_##X##_cdecl + #define BOOST_MEM_FN_CC __cdecl + + #include + + #undef BOOST_MEM_FN_CC + #undef BOOST_MEM_FN_NAME + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_MEM_FN_NAME(X) inner_##X##_stdcall *************** *** 128,133 **** --- 159,178 ---- #undef BOOST_MEM_FN_NAME2 #undef BOOST_MEM_FN_CC + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_MEM_FN_NAME(X) X##_cdecl + #define BOOST_MEM_FN_NAME2(X) inner_##X##_cdecl + #define BOOST_MEM_FN_CC __cdecl + + #include + + #undef BOOST_MEM_FN_NAME + #undef BOOST_MEM_FN_NAME2 + #undef BOOST_MEM_FN_CC + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_MEM_FN_NAME(X) X##_stdcall *************** *** 176,181 **** --- 221,238 ---- #undef BOOST_MEM_FN_CC #undef BOOST_MEM_FN_NAME + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_MEM_FN_NAME(X) X##_cdecl + #define BOOST_MEM_FN_CC __cdecl + + #include + + #undef BOOST_MEM_FN_CC + #undef BOOST_MEM_FN_NAME + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_MEM_FN_NAME(X) X##_stdcall *************** *** 217,222 **** --- 274,291 ---- #undef BOOST_MEM_FN_NAME #undef BOOST_MEM_FN_CC + #ifdef BOOST_MEM_FN_ENABLE_CDECL + + #define BOOST_MEM_FN_NAME(X) X##_cdecl + #define BOOST_MEM_FN_CC __cdecl + + #include + + #undef BOOST_MEM_FN_NAME + #undef BOOST_MEM_FN_CC + + #endif + #ifdef BOOST_MEM_FN_ENABLE_STDCALL #define BOOST_MEM_FN_NAME(X) X##_stdcall