Error building with Clang 3.8
Brought to you by:
king_leo
Building with Clang results in:
./leoini.h:263:9: error: no viable overloaded '='
Full log here:
http://clang.debian.net/logs/2016-08-30/xstow_1.0.0-2.1_unstable_clang.log
Patch to allow building with clang compiler may be found here:
Patch source: https://svnweb.freebsd.org/ports?view=revision&revision=319588
The patch I applied is:
diff -u src/string_utils.h~ src/string_utils.h
--- src/string_utils.h~ 2013-06-01 23:10:50.000000000 +0300
+++ src/string_utils.h 2013-06-01 22:56:43.000000000 +0300
@@ -28,6 +28,9 @@
# define STRSTREAM
#endif
+typedef std::vector<std::string> vec_string;
+std::ostream& operator<<( std::ostream& out, const vec_string &v );
+
std::string toupper( std::string s );
std::string strip( const std::string& str, const std::string& what = " \t\n\0" );
bool is_int( const std::string &s );
diff -u src/leoini.h~ src/leoini.h
--- src/leoini.h~ 2013-06-01 22:28:45.000000000 +0300
+++ src/leoini.h 2013-06-01 22:32:05.000000000 +0300
@@ -260,11 +260,9 @@</std::string>
return s2x("");
return s2x(s);
}
} // namespace Leo
Last edit: Jeff Putsch 2016-12-23