message: move Any comparison functions to be methods on Any to reduce type ambiguity
diff: @@ -53,6 +53,9 @@ namespace ospcommon {
  template<typename T>
  Any& operator=(T rhs);
  + bool operator==(const Any &rhs) const;
  + bool operator!=(const Any &rhs) const;
  +
  template<typename T>
  T& get();
  @@ -68,10 +71,6 @@ namespace ospcommon {
  private:
  - // Friends //
  -
  - friend bool operator==(const Any &lhs, const Any &rhs);
  -
  // Helper types //
  struct handle_base
  @@ -152,6 +151,16 @@ namespace ospcommon {
  return *this;
  }
  + inline bool Any::operator==(const Any &rhs) const
  + {
  + return currentValue->isSame(rhs.currentValue.get());
  + }
  +
  + inline bool Any::operator!=(const Any &rhs) const
  + {
  + return !(*this == rhs);
  + }
  +
  template<typename T>
  inline T &Any::get()
  {
  @@ -256,17 +265,5 @@ namespace ospcommon {
  return &value;
  }
  - // Comparison functions ///////////////////////////////////////////////////
  -
  - inline bool operator==(const Any &lhs, const Any &rhs)
  - {
  - return lhs.currentValue->isSame(rhs.currentValue.get());
  - }
  -
  - inline bool operator!=(const Any &lhs, const Any &rhs)
  - {
  - return !(lhs == rhs);
  - }
  -
  } // ::ospcommon::utility
  } // ::ospcommon
  