From d322b4f3ce429de5215fd52db24735b8f85ab878 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 5 Feb 2018 15:55:21 -0800 Subject: 'std::string &' => 'std::string& ' (#1403) The & on the type is the proper convention. --- src/support/file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/support/file.h') diff --git a/src/support/file.h b/src/support/file.h index b0df8fd06..c15e3f6ce 100644 --- a/src/support/file.h +++ b/src/support/file.h @@ -40,15 +40,15 @@ namespace Flags { } template -T read_file(const std::string &filename, Flags::BinaryOption binary, Flags::DebugOption debug); +T read_file(const std::string& filename, Flags::BinaryOption binary, Flags::DebugOption debug); // Declare the valid explicit specializations. -extern template std::string read_file<>(const std::string &, Flags::BinaryOption, Flags::DebugOption); -extern template std::vector read_file<>(const std::string &, Flags::BinaryOption, Flags::DebugOption); +extern template std::string read_file<>(const std::string& , Flags::BinaryOption, Flags::DebugOption); +extern template std::vector read_file<>(const std::string& , Flags::BinaryOption, Flags::DebugOption); class Output { public: // An empty filename will open stdout instead. - Output(const std::string &filename, Flags::BinaryOption binary, Flags::DebugOption debug); + Output(const std::string& filename, Flags::BinaryOption binary, Flags::DebugOption debug); ~Output() = default; template std::ostream &operator<<(const T &v) { -- cgit v1.2.3