mirror of
https://github.com/boostorg/function.git
synced 2025-07-25 02:17:14 +02:00
function_template.hpp:
- Wrap ICEs in parentheses when used as template arguments [SVN r16225]
This commit is contained in:
@ -283,7 +283,7 @@ namespace boost {
|
|||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
||||||
,typename detail::function::enable_if<
|
,typename detail::function::enable_if<
|
||||||
(::boost::type_traits::ice_not<
|
(::boost::type_traits::ice_not<
|
||||||
is_same<Functor, int>::value>::value),
|
(is_same<Functor, int>::value)>::value),
|
||||||
int>::type = 0
|
int>::type = 0
|
||||||
#endif // BOOST_FUNCTION_NO_ENABLE_IF
|
#endif // BOOST_FUNCTION_NO_ENABLE_IF
|
||||||
) :
|
) :
|
||||||
@ -330,7 +330,8 @@ namespace boost {
|
|||||||
template<typename Functor>
|
template<typename Functor>
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
||||||
typename detail::function::enable_if<
|
typename detail::function::enable_if<
|
||||||
(::boost::type_traits::ice_not<is_same<Functor, int>::value>::value),
|
(::boost::type_traits::ice_not<
|
||||||
|
(is_same<Functor, int>::value)>::value),
|
||||||
BOOST_FUNCTION_FUNCTION&>::type
|
BOOST_FUNCTION_FUNCTION&>::type
|
||||||
#else
|
#else
|
||||||
BOOST_FUNCTION_FUNCTION&
|
BOOST_FUNCTION_FUNCTION&
|
||||||
@ -578,7 +579,8 @@ public:
|
|||||||
function(Functor f
|
function(Functor f
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
||||||
,typename detail::function::enable_if<
|
,typename detail::function::enable_if<
|
||||||
(::boost::type_traits::ice_not<is_same<Functor, int>::value>::value),
|
(::boost::type_traits::ice_not<
|
||||||
|
(is_same<Functor, int>::value)>::value),
|
||||||
int>::type = 0
|
int>::type = 0
|
||||||
#endif
|
#endif
|
||||||
) :
|
) :
|
||||||
@ -603,7 +605,8 @@ public:
|
|||||||
template<typename Functor>
|
template<typename Functor>
|
||||||
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
#ifndef BOOST_FUNCTION_NO_ENABLE_IF
|
||||||
typename detail::function::enable_if<
|
typename detail::function::enable_if<
|
||||||
(::boost::type_traits::ice_not<is_same<Functor, int>::value>::value),
|
(::boost::type_traits::ice_not<
|
||||||
|
(is_same<Functor, int>::value)>::value),
|
||||||
self_type&>::type
|
self_type&>::type
|
||||||
#else
|
#else
|
||||||
self_type&
|
self_type&
|
||||||
|
Reference in New Issue
Block a user