Ticket #6905: emplace_args.diff
File emplace_args.diff, 3.3 KB (added by , 10 years ago) |
---|
-
emplace_args.hpp
164 164 165 165 # define BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(n, namespace_) \ 166 166 template<typename T> \ 167 void construct_from_tuple(T* ptr, namespace_ ::tuple<>)\167 void construct_from_tuple(T* ptr, namespace_ tuple<>) \ 168 168 { \ 169 169 new ((void*) ptr) T(); \ 170 170 } \ … … 175 175 # define BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE_IMPL(z, n, namespace_) \ 176 176 template<typename T, BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)> \ 177 177 void construct_from_tuple(T* ptr, \ 178 namespace_ ::tuple<BOOST_PP_ENUM_PARAMS_Z(z, n, A)> const& x)\178 namespace_ tuple<BOOST_PP_ENUM_PARAMS_Z(z, n, A)> const& x) \ 179 179 { \ 180 180 new ((void*) ptr) T( \ 181 181 BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_GET_TUPLE_ARG, namespace_) \ … … 183 183 } 184 184 185 185 # define BOOST_UNORDERED_GET_TUPLE_ARG(z, n, namespace_) \ 186 namespace_ ::get<n>(x)186 namespace_ get<n>(x) 187 187 188 188 #else 189 189 … … 193 193 template<typename T> \ 194 194 void construct_from_tuple_impl( \ 195 195 boost::unordered::detail::length<0>, T* ptr, \ 196 namespace_ ::tuple<>)\196 namespace_ tuple<>) \ 197 197 { \ 198 198 new ((void*) ptr) T(); \ 199 199 } \ … … 205 205 template<typename T, BOOST_PP_ENUM_PARAMS_Z(z, n, typename A)> \ 206 206 void construct_from_tuple_impl( \ 207 207 boost::unordered::detail::length<n>, T* ptr, \ 208 namespace_ ::tuple<BOOST_PP_ENUM_PARAMS_Z(z, n, A)> const& x)\208 namespace_ tuple<BOOST_PP_ENUM_PARAMS_Z(z, n, A)> const& x) \ 209 209 { \ 210 210 new ((void*) ptr) T( \ 211 211 BOOST_PP_ENUM_##z(n, BOOST_UNORDERED_GET_TUPLE_ARG, namespace_) \ … … 213 213 } 214 214 215 215 # define BOOST_UNORDERED_GET_TUPLE_ARG(z, n, namespace_) \ 216 namespace_ ::get<n>(x)216 namespace_ get<n>(x) 217 217 218 218 #endif 219 219 220 BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost )220 BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, boost::) 221 221 222 222 #if !defined(__SUNPRO_CC) && !defined(BOOST_NO_0X_HDR_TUPLE) 223 BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, std )223 BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE(10, std::) 224 224 #endif 225 225 226 226 #undef BOOST_UNORDERED_CONSTRUCT_FROM_TUPLE