Commit eaf4f047 authored by jerryjacobs's avatar jerryjacobs
Browse files

Hacked boost check macro to compile correct on Mac OSX Leopard

parent 9880975e
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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
      );
  };

+1 −1
Original line number Diff line number Diff line
@@ -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);