Kmer-File-Format / kff-cpp-api

A C++ API to read and write kff files
GNU Affero General Public License v3.0
9 stars 8 forks source link

compilation error in clang #10

Closed rchikhi closed 3 years ago

rchikhi commented 3 years ago

from GATB continuous integration:

<https://ci.inria.fr/gatb-core/job/test-suite-macos-10.9.5-clang-6.0/ws/gatb-core/thirdparty/kff-cpp-api/kff_io.cpp>:634:34: error: use of overloaded operator '+' is ambiguous (with operand types 'pos_type' (aka 'fpos<mbstate_t>') and 'long')
        file->fs.seekp(file->fs.tellp() + (long)(seq_bytes_needed + data_bytes_used));
                       ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:479:37: note: candidate function
    _LIBCPP_INLINE_VISIBILITY fpos  operator+ (streamoff __off) const {fpos __t(*this); __t += __off; return __t;}
                                    ^
<https://ci.inria.fr/gatb-core/job/test-suite-macos-10.9.5-clang-6.0/ws/gatb-core/thirdparty/kff-cpp-api/kff_io.cpp>:634:34: note: built-in candidate operator+(long long, long)
        file->fs.seekp(file->fs.tellp() + (long)(seq_bytes_needed + data_bytes_used));
tlemane commented 3 years ago

I think an update of the kff sources in GATB should fix the problem. It was fixed by this commit : 56c52b2969e67fa5b6d1c7baed440fd09550c32e.