constexpr bool
is_negative() const noexcept
{
- if constexpr (!__is_unsigned)
+ if constexpr (!_S_is_unsigned)
return _M_is_neg;
else
return false;
constexpr precision
to_duration() const noexcept
{
- if constexpr (!__is_unsigned)
+ if constexpr (!_S_is_unsigned)
if (_M_is_neg)
return -(_M_h + _M_m + _M_s + subseconds());
return _M_h + _M_m + _M_s + subseconds();
// TODO: Implement operator<<.
private:
- static constexpr bool __is_unsigned
+ static constexpr bool _S_is_unsigned
= __and_v<is_integral<typename _Duration::rep>,
is_unsigned<typename _Duration::rep>>;
: _M_args(__args), _M_out(std::move(__out)), _M_loc(__loc)
{ }
- template<typename _Out_, typename _CharT_, typename _Context_>
- friend _Out_
- __format::__do_vformat_to(_Out_, basic_string_view<_CharT_>,
- const basic_format_args<_Context_>&,
+ template<typename _Out2, typename _CharT2, typename _Context2>
+ friend _Out2
+ __format::__do_vformat_to(_Out2, basic_string_view<_CharT2>,
+ const basic_format_args<_Context2>&,
const locale*);
public:
#define ValueT ValueT is not a reserved name
#define ValueType ValueType is not a reserved name
+#ifndef _WIN32
+// Windows SAL annotations
+#define _In_ cannot be used as an identifier
+#define _Inout_ cannot be used as an identifier
+#define _Out_ cannot be used as an identifier
+#define _Reserved_ cannot be used as an identifier
+#define __inout cannot be used as an identifier
+#define __in_opt cannot be used as an identifier
+#define __out_opt cannot be used as an identifier
+#endif
+
#ifdef _AIX
// See https://gcc.gnu.org/ml/libstdc++/2017-03/msg00015.html
#undef f