Ticket #3133: boost_1_42_0_qnx-6.3.2.patch
File boost_1_42_0_qnx-6.3.2.patch, 4.7 KB (added by , 13 years ago) |
---|
-
boost/serialization/extended_type_info_no_rtti.hpp
diff -rupN boost_1_42_0/boost/serialization/extended_type_info_no_rtti.hpp boost_1_42_0_qnx-6.3.2/boost/serialization/extended_type_info_no_rtti.hpp
old new public: 124 124 } 125 125 virtual void * construct(unsigned int count, ...) const{ 126 126 // count up the arguments 127 #ifdef __QNXNTO__ 128 va_list ap; 129 #else 127 130 std::va_list ap; 131 #endif 128 132 va_start(ap, count); 129 133 switch(count){ 130 134 case 0: -
boost/serialization/extended_type_info_typeid.hpp
diff -rupN boost_1_42_0/boost/serialization/extended_type_info_typeid.hpp boost_1_42_0_qnx-6.3.2/boost/serialization/extended_type_info_typeid.hpp
old new 19 19 // See http://www.boost.org for updates, documentation, and revision history. 20 20 21 21 #include <typeinfo> 22 #ifdef __QNXNTO__ 23 #include <stdarg.h> 24 #else 22 25 #include <cstdarg> 26 #endif 23 27 #include <cassert> 24 28 #include <boost/config.hpp> 25 29 … … public: 109 113 } 110 114 virtual void * construct(unsigned int count, ...) const{ 111 115 // count up the arguments 116 #ifdef __QNXNTO__ 117 va_list ap; 118 #else 112 119 std::va_list ap; 120 #endif 113 121 va_start(ap, count); 114 122 switch(count){ 115 123 case 0: -
boost/serialization/factory.hpp
diff -rupN boost_1_42_0/boost/serialization/factory.hpp boost_1_42_0_qnx-6.3.2/boost/serialization/factory.hpp
old new 16 16 17 17 // See http://www.boost.org for updates, documentation, and revision history. 18 18 19 #ifdef __QNXNTO__ 20 #include <stdarg.h> 21 #else 19 22 #include <cstdarg> // valist 23 #endif 20 24 #include <cstddef> // NULL 21 25 22 26 #include <boost/preprocessor/control/if.hpp> … … namespace serialization { 34 38 35 39 // default implementation does nothing. 36 40 template<class T, int N> 41 #ifdef __QNXNTO__ 42 T * factory(va_list){ 43 #else 37 44 T * factory(std::va_list){ 45 #endif 38 46 assert(false); 39 47 // throw exception here? 40 48 return NULL; … … T * factory(std::va_list){ 43 51 } // namespace serialization 44 52 } // namespace boost 45 53 54 #ifdef __QNXNTO__ 55 #define BOOST_SERIALIZATION_FACTORY(N, T, A0, A1, A2, A3) \ 56 namespace boost { \ 57 namespace serialization { \ 58 template<> \ 59 T * factory<T, N>(va_list ap){ \ 60 BOOST_PP_IF(BOOST_PP_GREATER(N,0) \ 61 ,A0 a0 = va_arg(ap, A0); \ 62 ,BOOST_PP_IF(BOOST_PP_GREATER(N,1) \ 63 ,A1 a1 = va_arg(ap, A1); \ 64 ,BOOST_PP_IF(BOOST_PP_GREATER(N,2) \ 65 ,A2 a2 = va_arg(ap, A2); \ 66 ,BOOST_PP_IF(BOOST_PP_GREATER(N,3) \ 67 ,A3 a3 = va_arg(ap, A3); \ 68 ,BOOST_PP_EMPTY() \ 69 )))) \ 70 return new T( \ 71 BOOST_PP_IF(BOOST_PP_GREATER(N,0) \ 72 ,a0 \ 73 ,BOOST_PP_IF(BOOST_PP_GREATER(N,1) \ 74 ,a1 \ 75 ,BOOST_PP_IF(BOOST_PP_GREATER(N,2) \ 76 ,a2 \ 77 ,BOOST_PP_IF(BOOST_PP_GREATER(N,3) \ 78 ,a3 \ 79 ,BOOST_PP_EMPTY() \ 80 )))) \ 81 ); \ 82 } \ 83 } \ 84 } \ 85 /**/ 86 #else 46 87 #define BOOST_SERIALIZATION_FACTORY(N, T, A0, A1, A2, A3) \ 47 88 namespace boost { \ 48 89 namespace serialization { \ … … namespace serialization { 74 115 } \ 75 116 } \ 76 117 /**/ 118 #endif 77 119 78 120 #define BOOST_SERIALIZATION_FACTORY_4(T, A0, A1, A2, A3) \ 79 121 BOOST_SERIALIZATION_FACTORY(4, T, A0, A1, A2, A3)