boostorg / boostorg/iostreams

error: prototype for ‘int boost::iostreams::detail::bzip2_base::end(bool, std::nothrow_t)’ does not match any in class ‘boost::iostreams::detail::bzip2_base’

Open
#70 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
48
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Ubuntu 18.04. Compilation log:

```
username@username:~/iostreams/build$ b2
warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
Performing configuration checks

- bzip2 : yes (cached)
- lzma : no (cached)
- zstd : no (cached)
- zlib : yes (cached)
...found 47 targets...
...updating 2 targets...
gcc.compile.c++ bin/gcc-7.3.0/debug/bzip2.o
../src/bzip2.cpp:114:5: error: prototype for ‘int boost::iostreams::detail::bzip2_base::end(bool, std::nothrow_t)’ does not match any in class ‘boost::iostreams::detail::bzip2_base’
int bzip2_base::end(bool compress, std::nothrow_t)
^~~~~~~~~~
In file included from ../src/bzip2.cpp:19:0:
/usr/include/boost/iostreams/filter/bzip2.hpp:178:10: error: candidate is: void boost::iostreams::detail::bzip2_base::end(bool)
void end(bool compress);
^~~
../src/bzip2.cpp: In member function ‘void boost::iostreams::detail::bzip2_base::end(bool)’:
../src/bzip2.cpp:125:35: error: no matching function for call to ‘boost::iostreams::detail::bzip2_base::end(bool&, const std::nothrow_t&)’
end(compress, std::nothrow)
^
../src/bzip2.cpp:122:6: note: candidate: void boost::iostreams::detail::bzip2_base::end(bool)
void bzip2_base::end(bool compress)
^~~~~~~~~~
../src/bzip2.cpp:122:6: note: candidate expects 1 argument, 2 provided

"g++" -fPIC -O0 -fno-inline -Wall -g -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -c -o "bin/gcc-7.3.0/debug/bzip2.o" "../src/bzip2.cpp"

...failed gcc.compile.c++ bin/gcc-7.3.0/debug/bzip2.o...
...skipped libboost_iostreams.so for lack of bzip2.o...
...failed updating 1 target...
...skipped 1 target...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.