functional (dee715a7) | functional (3ea9485e) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 14 unchanged lines hidden (view full) --- 23#define SYSTEM_STL_FUNCTIONAL 24 25#if defined(HAVE_STL_INCLUDE_PATH) 26 // TODO: use computed include file name 27 #include_next <functional> 28#elif defined(_MSC_VER) 29 #include <../../VC/include/functional> 30 namespace std { using tr1::hash; } | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 14 unchanged lines hidden (view full) --- 23#define SYSTEM_STL_FUNCTIONAL 24 25#if defined(HAVE_STL_INCLUDE_PATH) 26 // TODO: use computed include file name 27 #include_next <functional> 28#elif defined(_MSC_VER) 29 #include <../../VC/include/functional> 30 namespace std { using tr1::hash; } |
31#if 1 // TODO: enable only when std::_Swap_adl is not available | 31#if 0 // TODO: enable only when std::_Swap_adl is not available |
32 // note: VS2008SP1 has known problems after a security update (KB971092,KB974479,KB974223) 33 namespace std{ template<class _T> void _Swap_adl(_T& l, _T& r) {swap(l,r);} } 34#endif 35#else // fall back to boost/tr1 36 #include <boost/tr1/tr1/functional> 37 #include <boost/functional/hash.hpp> 38#endif 39 --- 33 unchanged lines hidden --- | 32 // note: VS2008SP1 has known problems after a security update (KB971092,KB974479,KB974223) 33 namespace std{ template<class _T> void _Swap_adl(_T& l, _T& r) {swap(l,r);} } 34#endif 35#else // fall back to boost/tr1 36 #include <boost/tr1/tr1/functional> 37 #include <boost/functional/hash.hpp> 38#endif 39 --- 33 unchanged lines hidden --- |