mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Constrain make_zoned for icc16
Build fails with Intel Compiler v16: <source>(1698): error: expression must have a constant value std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{} ^
This commit is contained in:
parent
940f4a5ceb
commit
4c95165298
@ -1684,6 +1684,7 @@ make_zoned(const sys_time<Duration>& tp)
|
|||||||
|
|
||||||
template <class TimeZonePtr
|
template <class TimeZonePtr
|
||||||
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
||||||
|
#if !defined(__INTEL_COMPILER) || (__INTEL_COMPILER > 1600)
|
||||||
, class = typename std::enable_if
|
, class = typename std::enable_if
|
||||||
<
|
<
|
||||||
std::is_class
|
std::is_class
|
||||||
@ -1694,6 +1695,7 @@ template <class TimeZonePtr
|
|||||||
>::type
|
>::type
|
||||||
>{}
|
>{}
|
||||||
>::type
|
>::type
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
inline
|
inline
|
||||||
@ -1712,10 +1714,12 @@ make_zoned(const std::string& name)
|
|||||||
|
|
||||||
template <class Duration, class TimeZonePtr
|
template <class Duration, class TimeZonePtr
|
||||||
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
||||||
|
#if !defined(__INTEL_COMPILER) || (__INTEL_COMPILER > 1600)
|
||||||
, class = typename std::enable_if
|
, class = typename std::enable_if
|
||||||
<
|
<
|
||||||
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
||||||
>::type
|
>::type
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
inline
|
inline
|
||||||
@ -1728,10 +1732,12 @@ make_zoned(TimeZonePtr zone, const local_time<Duration>& tp)
|
|||||||
|
|
||||||
template <class Duration, class TimeZonePtr
|
template <class Duration, class TimeZonePtr
|
||||||
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
||||||
|
#if !defined(__INTEL_COMPILER) || (__INTEL_COMPILER > 1600)
|
||||||
, class = typename std::enable_if
|
, class = typename std::enable_if
|
||||||
<
|
<
|
||||||
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
||||||
>::type
|
>::type
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
inline
|
inline
|
||||||
@ -1794,10 +1800,12 @@ make_zoned(const std::string& name, const zoned_time<Duration, TimeZonePtr>& zt,
|
|||||||
|
|
||||||
template <class Duration, class TimeZonePtr
|
template <class Duration, class TimeZonePtr
|
||||||
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
#if !defined(_MSC_VER) || (_MSC_VER > 1916)
|
||||||
|
#if !defined(__INTEL_COMPILER) || (__INTEL_COMPILER > 1600)
|
||||||
, class = typename std::enable_if
|
, class = typename std::enable_if
|
||||||
<
|
<
|
||||||
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
std::is_class<typename std::decay<decltype(*std::declval<TimeZonePtr&>())>::type>{}
|
||||||
>::type
|
>::type
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
>
|
>
|
||||||
inline
|
inline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user