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"