Hi James, On Sun, Aug 27, 2017 at 02:58:34PM +0100, James Cowgill 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. Kind regards Andreas. -- http://fam-tille.de