Skip to content
Snippets Groups Projects
Unverified Commit 1ad70b4b authored by Joris Vaillant's avatar Joris Vaillant
Browse files

core: Rename VariantImplicitlyConvertible to VariantConvertible

parent 6f713be1
No related branches found
No related tags found
No related merge requests found
...@@ -214,9 +214,9 @@ struct VariantConverter { ...@@ -214,9 +214,9 @@ struct VariantConverter {
}; };
}; };
/// Declare a variant alternative implicitly convertible to the variant /// Convert an Alternative type to a Variant
template <typename Variant> template <typename Variant>
struct VariantImplicitlyConvertible { struct VariantConvertible {
typedef Variant variant_type; typedef Variant variant_type;
template <class T, typename std::enable_if<is_empty_variant<T>::value, template <class T, typename std::enable_if<is_empty_variant<T>::value,
...@@ -286,8 +286,7 @@ struct VariantConverter { ...@@ -286,8 +286,7 @@ struct VariantConverter {
typedef typename details::VariantAlternatives<variant_type>::types types; typedef typename details::VariantAlternatives<variant_type>::types types;
bp::to_python_converter<variant_type, variant_to_value>(); bp::to_python_converter<variant_type, variant_to_value>();
boost::mpl::for_each<types>( boost::mpl::for_each<types>(details::VariantConvertible<variant_type>());
details::VariantImplicitlyConvertible<variant_type>());
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment