From 0ef633a3c50a7c66dcc41d5e993c300865abe43d Mon Sep 17 00:00:00 2001 From: Soonho Kong Date: Tue, 24 Sep 2013 21:30:56 -0700 Subject: [PATCH] Fix to be compiled by clang++-3.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clang++-3.4 is starting to enforce the following item of C++11 standard, thus it's making lean not compiling: It's illegal in C++11: ยง8.3.6.4 [dcl.fct.default] "If a friend declaration specifies a default argument expression, that declaration shall be a definition and shall be the only declaration of the function or function template in the translation unit." --- src/util/sexpr/format.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/sexpr/format.h b/src/util/sexpr/format.h index df67bc296..4aa241ee5 100644 --- a/src/util/sexpr/format.h +++ b/src/util/sexpr/format.h @@ -187,7 +187,7 @@ public: friend format compose(format const & f1, format const & f2); friend format nest(int i, format const & f); - friend format highlight(format const & f, format::format_color const c = RED); + friend format highlight(format const & f, format::format_color const c); friend format mk_line(); friend format group(format const & f); @@ -224,7 +224,7 @@ public: format wrap(format const & f1, format const & f2); format compose(format const & f1, format const & f2); format nest(int i, format const & f); -format highlight(format const & f, format::format_color const c); +format highlight(format const & f, format::format_color const c = format::RED); format highlight_keyword(format const & f); format highlight_builtin(format const & f); format highlight_command(format const & f);