[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Same for pbbam (Was: Help for updating pbcopper is needed)



Hi Andreas,

Andreas Tille, on 2020-11-12 17:44:58 +0100:
> ../tests/src/test_ReadGroupInfo.cpp:280:9:   required from here
> /usr/include/boost/optional/optional.hpp:1591:3: error: static assertion failed: If you want to output boost::optional, include header <boost/optional/optional_io.hpp>
>  1591 |   BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to output boost::optional, include header <boost/optional/optional_io.hpp>");
>       |   ^~~~~~~~~~~~~~~~~~~~~~~

From what I understood, the header needs to appear before the
first occurrence of #include <boost/optional.hpp>.  In that case
however, after solving that first symptom, there are a few
occurrences of a "barcode" variable which have an undefined auto
type, and do not resolve as expected at build time, leading to:

	../tests/src/test_ReadGroupInfo.cpp:287:9:   required from here
	/usr/include/boost/optional/optional_io.hpp:47:21: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const std::pair<short unsigned int, short unsigned int>’)
	   47 |     else out << ' ' << *v ;
	      |          ~~~~~~~~~~~^~~~~
	In file included from /usr/include/c++/10/istream:39,
	                 from /usr/include/boost/optional/optional_io.hpp:15,
	[...]

I tried a thing or two based on this thread:

	https://stackoverflow.com/questions/29665483/right-way-to-use-boostoptional#29665584

but I ended up doing targeted disablings of checks, as I had no
idea how to fix this properly.  :(

The package now builds, I even ran autopkgtest, and nothing to
report there, things work.  My C++ is not the best so if anyone
sees a much more appropriate fix for the boost::optional issue,
feel free to bring changes here:

	https://salsa.debian.org/med-team/pbbam

> Thanks for your always helping hands

You're welcome, glad to be of help.  :)
-- 
Étienne Mollier <etienne.mollier@mailoo.org>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/7, please excuse my verbosity.

Attachment: signature.asc
Description: PGP signature


Reply to: