On Mon, Aug 28, 2017 at 10:42:30PM +0200, Andreas Tille wrote: > > > g++ -DHAVE_CONFIG_H -I. -I.. -I../Bigraph -I../Thirdparty -Wdate-time > > > -D_FORTIFY_SOURCE=2 -fopenmp -I/usr//include -I/usr//include/bamtools > > > -Wall -Wextra -Wno-unknown-pragmas -std=c++98 -O3 -c -o > > > libutil_a-VariantIndex.o `test -f 'VariantIndex.cpp' || echo > > > './'`VariantIndex.cpp > > > VariantIndex.cpp: In member function 'VariantRecordVector > > > VariantIndex::getNearVariants(const string&, int, int) const': > > > VariantIndex.cpp:89:46: error: call of overloaded 'abs(long unsigned > > > int)' is ambiguous > > > if(abs(record.position - position) < distance) > > > ^ > > > > In C++11, you cannot call abs on an unsigned integer (which makes no > > sense anyway). Probably "record.position" needs casting to a signed type > > (like long). > > Well, casting to long helped - but in how far does making > > abs(unsigned - unsigned) > > no sense? This does not sound very logical to me. The result of (unsigned - unsigned) is unsigned.
-- WBR, wRAR
signature.asc
Description: PGP signature