svn commit: r478098 - head/devel/ccdoc/files
Tobias Kortkamp
tobik at FreeBSD.org
Sun Aug 26 04:34:36 UTC 2018
Author: tobik
Date: Sun Aug 26 04:34:34 2018
New Revision: 478098
URL: https://svnweb.freebsd.org/changeset/ports/478098
Log:
devel/ccdoc: Fix build with Clang 6
log.cc:236:8: error: invalid operands to binary expression ('std::__1::ostream' (aka 'basic_ostream<char>') and 'std::__1::ostream')
(*os) << fct( *os );
~~~~~ ^ ~~~~~~~~~~
http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/ccdoc-0.8r41.log
Added:
head/devel/ccdoc/files/patch-log.cc (contents, props changed)
head/devel/ccdoc/files/patch-log.h (contents, props changed)
Added: head/devel/ccdoc/files/patch-log.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ccdoc/files/patch-log.cc Sun Aug 26 04:34:34 2018 (r478098)
@@ -0,0 +1,29 @@
+log.cc:236:8: error: invalid operands to binary expression ('std::__1::ostream' (aka 'basic_ostream<char>') and 'std::__1::ostream')
+ (*os) << fct( *os );
+ ~~~~~ ^ ~~~~~~~~~~
+
+Never used
+
+--- log.cc.orig 2018-08-26 04:28:55 UTC
++++ log.cc
+@@ -225,20 +225,6 @@ ccdoc::log& ccdoc::log::operator << (const vector<stri
+ return *this;
+ }
+ // ================================================================
+-// operator <<
+-// ================================================================
+-ccdoc::log& ccdoc::log::operator << (ostream& (fct)(ostream&) ) {
+- if(m_output_flag) {
+- vector<ostream*>::iterator i = m_os.begin();
+- for( ; i!=m_os.end(); ++i) {
+- ostream* os = *i;
+- if(os)
+- (*os) << fct( *os );
+- }
+- }
+- return *this;
+-}
+-// ================================================================
+ // Warning
+ // ================================================================
+ ccdoc::log& ccdoc::log::warning() {
Added: head/devel/ccdoc/files/patch-log.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/ccdoc/files/patch-log.h Sun Aug 26 04:34:34 2018 (r478098)
@@ -0,0 +1,10 @@
+--- log.h.orig 2018-08-26 04:31:27 UTC
++++ log.h
+@@ -69,7 +69,6 @@ namespace ccdoc {
+ log& operator << (unsigned int);
+ log& operator << (long);
+ log& operator << (unsigned long);
+- log& operator << (ostream& (fct)(ostream&));
+ log& operator << (log& x) {return x;}
+ log& flush();
+ void insert(ostream*);
More information about the svn-ports-all
mailing list