allow map keys to be forward declared only

[SVN r84275]
This commit is contained in:
Joel de Guzman
2013-05-13 23:01:05 +00:00
parent 92ee36a556
commit e83960d3e9
2 changed files with 4 additions and 5 deletions

View File

@ -113,8 +113,8 @@ namespace boost { namespace fusion { namespace detail
value_type get_val(mpl::identity<key_type>) const;
pair_type get_val(mpl::int_<index>) const;
key_type get_key(mpl::int_<index>);
key_type get_key(mpl::int_<index>) const;
mpl::identity<key_type> get_key(mpl::int_<index>);
mpl::identity<key_type> get_key(mpl::int_<index>) const;
typename cref_result<value_type>::type
get(mpl::identity<key_type>) const

View File

@ -54,9 +54,8 @@ namespace boost { namespace fusion
{
typedef typename Iterator::sequence sequence;
typedef typename Iterator::index index;
typedef
decltype(std::declval<sequence>().get_key(index()))
type;
typedef decltype(std::declval<sequence>().get_key(index())) key_identity_type;
typedef typename key_identity_type::type type;
};
template<typename Iterator>