Fix unexpected overload resolution on MSVC.

This commit is contained in:
Kohei Takahashi
2015-01-18 02:23:40 +09:00
parent af1bc25783
commit 326104a9b7
2 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,8 @@ namespace boost { namespace fusion { namespace detail
template <typename U, typename Rst>
BOOST_FUSION_GPU_ENABLED
keyed_element(keyed_element<Key, U, Rst> const& rhs)
keyed_element(keyed_element<Key, U, Rst> const& rhs
, typename enable_if<is_convertible<U, Value> >::type* = 0)
: Rest(rhs.get_base()), value_(rhs.value_)
{}