lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9d24cd9 024/156: Compilation fix for C++11 bu


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9d24cd9 024/156: Compilation fix for C++11 but not C++14 compilers
Date: Tue, 30 Jan 2018 17:21:58 -0500 (EST)

branch: master
commit 9d24cd9bcdbc4fe39f98443748dfadc72a4b6eea
Author: Vadim Zeitlin <address@hidden>
Commit: Vadim Zeitlin <address@hidden>

    Compilation fix for C++11 but not C++14 compilers
    
    Type deduced by "auto" in C++11 was std::initializer_list<text> and not
    text as expected, so use "text" explicitly instead of auto.
---
 html.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html.hpp b/html.hpp
index ecad033..d81036a 100644
--- a/html.hpp
+++ b/html.hpp
@@ -316,7 +316,7 @@ extern element      const tr;
 inline
 text operator+(text t1, text const& t2)
 {
-    auto t{std::move(t1)};
+    text t{std::move(t1)};
     t += t2;
     return t;
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]