diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:36:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:36:28 +0100 |
commit | 7014a5a3ea0feffab9701fdd6b64cc7667a985af (patch) | |
tree | f2cbbaa8bb9209cd15208721103228336149b799 /dev-cpp/commoncpp2/files | |
parent | 7a86906b67693cc65671d3e1476835d3a7e13092 (diff) |
gentoo resync : 30.06.2019
Diffstat (limited to 'dev-cpp/commoncpp2/files')
-rw-r--r-- | dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch b/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch new file mode 100644 index 000000000000..795e44178c64 --- /dev/null +++ b/dev-cpp/commoncpp2/files/1.8.1-fix-gcc9.patch @@ -0,0 +1,28 @@ +https://bugs.gentoo.org/686012 +In file included from ../inc/cc++/thread.h:50, + from thread.cpp:41: +../inc/cc++/string.h:734:35: error: friend declaration of ‘std::istream& getline(std::istream&, ost::String&, char, size_t)’ specifies default arguments and isn’t a definition [-fpermissive] + 734 | friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0); + | ^~~~~~~ + +--- a/inc/cc++/string.h ++++ b/inc/cc++/string.h +@@ -58,6 +58,9 @@ + + class MemPager; + ++class String; ++__EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0); ++ + /** + * This is a generic and portable string class. It uses optimized + * memory allocation strategies to efficiently handle smaller string +@@ -731,7 +734,7 @@ + * @param delim deliminator to use. + * @param size optional size limitor. + */ +- friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0); ++ friend std::istream &getline(std::istream &is, String &str, char delim, size_t size); + + /** + * Stream the content of our string variable directly to a C++ |