mirror of
https://github.com/boostorg/function.git
synced 2025-07-25 02:17:14 +02:00
aCC workaround
[SVN r16975]
This commit is contained in:
@ -295,15 +295,21 @@ namespace boost {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||||
|
|
||||||
|
# if BOOST_WORKAROUND(__HP_aCC, <= 33900)
|
||||||
|
template<bool cond, typename T> struct enable_if;
|
||||||
|
# else
|
||||||
template<bool, typename> struct enable_if;
|
template<bool, typename> struct enable_if;
|
||||||
|
# endif
|
||||||
|
|
||||||
template<typename T> struct enable_if<true, T> { typedef T type; };
|
template<typename T> struct enable_if<true, T> { typedef T type; };
|
||||||
template<typename T> struct enable_if<false, T> {};
|
template<typename T> struct enable_if<false, T> {};
|
||||||
#else
|
#else
|
||||||
# if defined(BOOST_STRICT_CONFIG) || !defined(__HP_aCC) || __HP_aCC > 33900
|
|
||||||
template<bool>
|
# if BOOST_WORKAROUND(__HP_aCC, <= 33900)
|
||||||
# else
|
|
||||||
template<bool x>
|
template<bool x>
|
||||||
|
# else
|
||||||
|
template<bool>
|
||||||
# endif
|
# endif
|
||||||
struct enabled
|
struct enabled
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user