Merge BasicArgFormatter and ArgFormatter

This commit is contained in:
Victor Zverovich
2016-11-20 09:36:27 -08:00
parent d4084ac5b1
commit 284297019f
5 changed files with 29 additions and 42 deletions
+3 -4
View File
@@ -208,15 +208,14 @@ class WidthHandler {
\endrst
*/
template <typename Char>
class PrintfArgFormatter :
public internal::ArgFormatterBase<PrintfArgFormatter<Char>, Char> {
class PrintfArgFormatter : public internal::ArgFormatterBase<Char> {
private:
void write_null_pointer() {
this->spec().type_ = 0;
this->write("(nil)");
}
typedef internal::ArgFormatterBase<PrintfArgFormatter<Char>, Char> Base;
typedef internal::ArgFormatterBase<Char> Base;
public:
/**
@@ -227,7 +226,7 @@ class PrintfArgFormatter :
\endrst
*/
PrintfArgFormatter(BasicWriter<Char> &writer, FormatSpec &spec)
: internal::ArgFormatterBase<PrintfArgFormatter<Char>, Char>(writer, spec) {}
: internal::ArgFormatterBase<Char>(writer, spec) {}
using Base::operator();