Hacked boost check macro to compile correct on Mac OSX Leopard
This commit is contained in:
parent
9880975eb0
commit
eaf4f04748
|
@ -69,11 +69,11 @@ namespace is_incrementable_
|
|||
# pragma warning(disable:4913) // Warning about operator,
|
||||
# endif
|
||||
|
||||
// two check overloads help us identify which operator++ was picked
|
||||
char (& check(tag) )[2];
|
||||
// two check_ overloads help us identify which operator++ was picked
|
||||
char (& check_(tag) )[2];
|
||||
|
||||
template <class T>
|
||||
char check(T const&);
|
||||
char check_(T const&);
|
||||
|
||||
|
||||
template <class T>
|
||||
|
@ -83,7 +83,7 @@ namespace is_incrementable_
|
|||
|
||||
BOOST_STATIC_CONSTANT(
|
||||
bool
|
||||
, value = sizeof(is_incrementable_::check(BOOST_comma(++x,0))) == 1
|
||||
, value = sizeof(is_incrementable_::check_(BOOST_comma(++x,0))) == 1
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace is_incrementable_
|
|||
|
||||
BOOST_STATIC_CONSTANT(
|
||||
bool
|
||||
, value = sizeof(is_incrementable_::check(BOOST_comma(x++,0))) == 1
|
||||
, value = sizeof(is_incrementable_::check_(BOOST_comma(x++,0))) == 1
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ public:
|
|||
deleter_const_reference get_deleter() const { return impl_.second(); }
|
||||
private:
|
||||
template<typename TT, typename DD>
|
||||
void check(const static_move_ptr<TT, DD>& ptr)
|
||||
void check_(const static_move_ptr<TT, DD>& ptr)
|
||||
{
|
||||
typedef move_ptrs::is_smart_ptr_convertible<TT, T> convertible;
|
||||
BOOST_STATIC_ASSERT(convertible::value);
|
||||
|
|
Loading…
Reference in New Issue