From 866270739ce803b91a1f742f8353f71f9e7088bd Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 28 Mar 2014 12:52:36 +0300 Subject: [PATCH] formatter small cleanup --- include/c11log/formatter.h | 11 +++++------ include/c11log/sinks/file_sinks.h | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/c11log/formatter.h b/include/c11log/formatter.h index 8e794c0c..7ca9d6af 100644 --- a/include/c11log/formatter.h +++ b/include/c11log/formatter.h @@ -3,10 +3,9 @@ #include #include #include -#include + #include #include -#include #include #include "common_types.h" @@ -18,14 +17,14 @@ namespace c11log namespace formatters { -typedef std::function format_fn; - class formatter { public: - formatter() {} - virtual ~formatter() {} + formatter() = default; + virtual ~formatter() = default; + formatter(const formatter&) = delete; + formatter& operator=(const formatter&) = delete; virtual void format_header(const std::string& logger_name, level::level_enum level, const log_clock::time_point& tp, std::ostream& dest) = 0; }; diff --git a/include/c11log/sinks/file_sinks.h b/include/c11log/sinks/file_sinks.h index a1cb7529..6001903b 100644 --- a/include/c11log/sinks/file_sinks.h +++ b/include/c11log/sinks/file_sinks.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include #include "base_sink.h"