Skip to content

Commit

Permalink
binary_function has been deprecated in C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
anaegel committed Oct 27, 2023
1 parent 054b337 commit 09b6925
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ugbase/common/util/smart_pointer.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,10 @@ class ConstSmartPtr<void>
namespace std
{
template <class T, template <class TPtr> class TFreePolicy>
struct less<SmartPtr<T, TFreePolicy> > :
public binary_function<SmartPtr<T, TFreePolicy>, SmartPtr<T, TFreePolicy>, bool>
struct less<SmartPtr<T, TFreePolicy> >
#if (__cplusplus < 201103L)
: public binary_function<SmartPtr<T, TFreePolicy>, SmartPtr<T, TFreePolicy>, bool>
#endif
{
bool operator()(const SmartPtr<T, TFreePolicy>& lhs,
const SmartPtr<T, TFreePolicy>& rhs) const
Expand Down

0 comments on commit 09b6925

Please sign in to comment.