diff --git a/format.h b/format.h index c1553707..e9b8e3cb 100644 --- a/format.h +++ b/format.h @@ -244,14 +244,14 @@ struct FormatSpec : AlignSpec { char type() const { return type_; } }; -template -class IntFormatter : public Spec { +template +class IntFormatter : public SpecT { private: T value_; public: - IntFormatter(T value, const Spec &spec = Spec()) - : Spec(spec), value_(value) {} + IntFormatter(T value, const SpecT &spec = SpecT()) + : SpecT(spec), value_(value) {} T value() const { return value_; } };