From deaa17a947f8dcb4261975d97cb45f5bd9dd88d9 Mon Sep 17 00:00:00 2001 From: mniip Date: Tue, 8 May 2018 06:05:12 +0300 Subject: [PATCH] Work around some holes in the BitmaskType specification --- src/common/Format.h | 14 +++++++------- src/common/String.h | 6 +++++- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/common/Format.h b/src/common/Format.h index acfcc5765..338adb701 100644 --- a/src/common/Format.h +++ b/src/common/Format.h @@ -118,21 +118,21 @@ namespace Format template inline FlagsOverride Uppercase(T value) { return FlagsOverride(value); } template inline FlagsOverride ShowPoint(T value) { return FlagsOverride(value); } - template inline FlagsOverride NoUppercase(T value) { return FlagsOverride(value); } - template inline FlagsOverride NoShowPoint(T value) { return FlagsOverride(value); } + template inline FlagsOverride NoUppercase(T value) { return FlagsOverride(value); } + template inline FlagsOverride NoShowPoint(T value) { return FlagsOverride(value); } inline FlagsOverride Uppercase() { return FlagsOverride(); } inline FlagsOverride ShowPoint() { return FlagsOverride(); } inline FlagsOverride SkipWS() { return FlagsOverride(); } - inline FlagsOverride NoUppercase() { return FlagsOverride(); } - inline FlagsOverride NoShowPoint() { return FlagsOverride(); } - inline FlagsOverride NoSkipWS() { return FlagsOverride(); } + inline FlagsOverride NoUppercase() { return FlagsOverride(); } + inline FlagsOverride NoShowPoint() { return FlagsOverride(); } + inline FlagsOverride NoSkipWS() { return FlagsOverride(); } template inline FlagsOverride Fixed(T value) { return FlagsOverride(value); } template inline FlagsOverride Scientific(T value) { return FlagsOverride(value); } - template inline FlagsOverride FloatDefault(T value) { return FlagsOverride(value); } + template inline FlagsOverride FloatDefault(T value) { return FlagsOverride(value); } inline FlagsOverride Fixed() { return FlagsOverride(); } inline FlagsOverride Scientific() { return FlagsOverride(); } - inline FlagsOverride FloatDefault() { return FlagsOverride(); } + inline FlagsOverride FloatDefault() { return FlagsOverride(); } template inline FillOverride Fill(T value, String::value_type fill) { return FillOverride(value, fill); } template inline WidthOverride Width(T value, size_t width) { return WidthOverride(value, width); } diff --git a/src/common/String.h b/src/common/String.h index a75550a84..57a06f1d4 100644 --- a/src/common/String.h +++ b/src/common/String.h @@ -164,7 +164,11 @@ class ByteStringBuilder; class String; class StringBuilder; -namespace Format { template struct FlagsOverride; } +namespace Format +{ + const std::ios_base::fmtflags EmptyFmtFlags = std::ios_base::dec & ~std::ios_base::dec; + template struct FlagsOverride; +} template class SplitBase {