#if __cplusplus > 201103L
- inline namespace literals {
- inline namespace chrono_literals {
+ inline namespace literals
+ {
+ inline namespace chrono_literals
+ {
- namespace __detail {
+ namespace __select_type
+ {
using namespace __parse_int;
constexpr typename _Select_type<_Val, _Dur>::type
_Select_type<_Val, _Dur>::value;
- } // __detail
+ } // __select_type
constexpr chrono::duration<long double, ratio<3600,1>>
operator"" h(long double __hours)
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::hours>::type
operator"" h()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::hours>::value;
}
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::minutes>::type
operator"" min()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::minutes>::value;
}
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::seconds>::type
operator"" s()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::seconds>::value;
}
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::milliseconds>::type
operator"" ms()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::milliseconds>::value;
}
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::microseconds>::type
operator"" us()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::microseconds>::value;
}
template <char... _Digits>
constexpr typename
- __detail::_Select_type<__select_int::_Select_int<_Digits...>::value,
+ __select_type::_Select_type<__select_int::_Select_int<_Digits...>::value,
chrono::nanoseconds>::type
operator"" ns()
{
- return __detail::_Select_type<
+ return __select_type::_Select_type<
__select_int::_Select_int<_Digits...>::value,
chrono::nanoseconds>::value;
}