[COre] Pull request for enable_if_type
Hi, I just refurbished and pushed an old patch adding the enable_if_type SFINAE utility to core. https://github.com/boostorg/core/pull/15 I tried to keep it simple and make the doc proper. This utility has been laying around various boost library and was "reinvetned" in bosot.SIMD. I think it's worth being in core so code duplication is kept to a minimum. Comments welcome
On 10.08.2015 17:57, Joel FALCOU wrote:
Hi,
I just refurbished and pushed an old patch adding the enable_if_type SFINAE utility to core.
https://github.com/boostorg/core/pull/15
I tried to keep it simple and make the doc proper. This utility has been laying around various boost library and was "reinvetned" in bosot.SIMD. I think it's worth being in core so code duplication is kept to a minimum.
I think there's an overlap with BOOST_MPL_HAS_XXX_TRAIT_DEF and BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF. Maybe it should be better named as enable_if_has_type?
On 10/08/2015 18:29, Joel FALCOU wrote:
On 10/08/2015 17:09, Andrey Semashev wrote:
I think there's an overlap with BOOST_MPL_HAS_XXX_TRAIT_DEF and BOOST_MPL_HAS_XXX_TRAIT_NAMED_DEF. Maybe it should be better named as enable_if_has_type?
I'm OK with any names
I've updated the naming and the pull request
participants (2)
-
Andrey Semashev
-
Joel FALCOU