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-01 21:08:16
#13434: index_args_default_compare uses result_type
-------------------------------+-----------------------------------
Reporter: gast128@⦠| Owner: JoaquÃn M López Muñoz
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multi_index
Version: Boost 1.65.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-----------------------------------
Comment (by gast128@â¦):
I use Boost 1.65.1 with Visual studio 2017:
{{{#!cpp
template <class PairType>
struct select1st/* : public std::unary_function<PairType, typename
PairType::first_type>*/
{
const typename PairType::first_type& operator()(const PairType& cr)
const
{
return cr.first;
}
};
int main()
{
typedef std::pair<int, int> ClassEntry;
typedef boost::multi_index::multi_index_container
<
ClassEntry,
boost::multi_index::indexed_by
<
boost::multi_index::ordered_non_unique<select1st<ClassEntry>>
>
> ClassEntrySet;
ClassEntrySet cntEntries;
return 0;
}
}}}
1>d:\develop\sdk and
libraries\boost_1_65_1\boost\multi_index\detail\ord_index_args.hpp(46):
error C2039: 'result_type': is not a member of 'select1st<ClassEntry>'
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13434#comment:2> 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-01 21:13:51 UTC