Re: [Boost-bugs] [Boost C++ Libraries] #13434: index_args_default_compare uses result_type

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13434: index_args_default_compare uses result_type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-02-03 09:42:41


#13434: index_args_default_compare uses result_type
-------------------------------+-----------------------------------
  Reporter: gast128@… | Owner: Joaquín M López Muñoz
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: multi_index
   Version: Boost 1.65.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------+-----------------------------------

Comment (by Joaquín M López Muñoz):

 On the absence of `std::unary_function`, the simplest alternative is to
 write the nested `typedef` yourself as shown above.

 The rationale behind this removal is that C++11 and later allow for
 smarter ways of detecting the result type of `operator()` such as
 [http://en.cppreference.com/w/cpp/types/result_of
 std::result_of/std::invoke_result]: if Boost.!MultiIndex had been written
 10 years later, it'd have probably relied on one of these rather than
 requiring the user to provide `::result_type`.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13434#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2018-02-03 09:46:51 UTC