Skip to content

Fix bug for "no match for 'operator<<'" in views/download_progress.cc

Wesley Schwengle requested to merge waterkip/aptitude:fix-make-error into debian-sid

Fix the following error:

make[5]: Entering directory '/home/wesleys/code/foss/debian/aptitude/src/generic/views' g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../.. -I../../../src -I../../../intl -I/usr/include -DHELPDIR="/usr/local/share/aptitude" -DPKGDATADIR="/usr/local/share/aptitude" -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/cwidget -I/usr/lib/x86_64-linux-gnu/cwidget -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -g -O2 -D_REENTRANT -std=gnu++17 -Wall -MT download_progress.o -MD -MP -MF .deps/download_progress.Tpo -c -o download_progress.o download_progress.cc download_progress.cc: In function ‘std::ostream& aptitude::views::operator<<(std::ostream&, const download_progress::file_progress&)’: download_progress.cc:49:11: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘const char [17]’) 49 | out << "(current_size = " | ~~~ ^~ ~~~~~~~~~~~~~~~~~~ | | | | | const char [17] | std::ostream {aka std::basic_ostream}

Signed-off-by: Wesley Schwengle wesleys@opperschaap.net

Merge request reports

Loading