uclibc++: fix build with gcc 5.2
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Sep 2015 13:15:05 +0000 (13:15 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Sep 2015 13:15:05 +0000 (13:15 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46777

package/libs/uclibc++/patches/020-template-fix.patch [new file with mode: 0644]

diff --git a/package/libs/uclibc++/patches/020-template-fix.patch b/package/libs/uclibc++/patches/020-template-fix.patch
new file mode 100644 (file)
index 0000000..f7cc09e
--- /dev/null
@@ -0,0 +1,22 @@
+--- a/include/ostream
++++ b/include/ostream
+@@ -294,7 +294,7 @@ namespace std {
+ #endif
+ #endif
+-      template <class charT,class traits = char_traits<charT> >
++      template <class charT,class traits>
+               class _UCXXEXPORT basic_ostream<charT,traits>::sentry
+       {
+               bool ok;
+--- a/include/istream
++++ b/include/istream
+@@ -340,7 +340,7 @@ namespace std{
+       };
+-      template <class charT,class traits = char_traits<charT> > class _UCXXEXPORT basic_istream<charT,traits>::sentry {
++      template <class charT,class traits> class _UCXXEXPORT basic_istream<charT,traits>::sentry {
+               bool ok;
+       public:
+               explicit _UCXXEXPORT sentry(basic_istream<charT,traits>& os, bool noskipws = false){