forked from boostorg/container
Changes to support GCC 3.4
This commit is contained in:
1 parent
f8a4f01a86
commit
7764e05444
10 files changed
+45
-33
No files matched your search
@@ -107,7 +107,7 @@
|
||||
|
||||
#elif (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))
|
||||
/* Custom spin locks for older gcc on x86 */
|
||||
static FORCEINLINE int boost_container_x86_cas_lock(int *sl) {
|
||||
static inline int boost_container_x86_cas_lock(int *sl) {
|
||||
int ret;
|
||||
int val = 1;
|
||||
int cmp = 0;
|
||||
@@ -118,7 +118,7 @@
|
||||
return ret;
|
||||
}
|
||||
|
||||
static FORCEINLINE void boost_container_x86_clear_lock(int* sl) {
|
||||
static inline void boost_container_x86_clear_lock(int* sl) {
|
||||
assert(*sl != 0);
|
||||
int prev = 0;
|
||||
int ret;
|
||||
|
||||
@@ -408,13 +408,12 @@ struct key_node_compare
|
||||
};
|
||||
|
||||
template<class T>
|
||||
typename enable_if_c<is_node<T>::value, const typename KeyValueCompare::value_type &>::type
|
||||
key_forward(const T &node) const
|
||||
const typename KeyValueCompare::value_type &
|
||||
key_forward(const T &node, typename enable_if_c<is_node<T>::value>::type* =0) const
|
||||
{ return node.get_data(); }
|
||||
|
||||
template<class T>
|
||||
typename enable_if_c<!is_node<T>::value, const T &>::type
|
||||
key_forward(const T &key) const
|
||||
const T &key_forward(const T &key, typename enable_if_c<!is_node<T>::value>::type* =0) const
|
||||
{ return key; }
|
||||
|
||||
template<class KeyType, class KeyType2>
|
||||
|
||||
Reference in new issue
Block a user