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

Re: C++ help needed for spaced: call of overloaded 'abs(uint32_t&)' is ambiguous



Hi,

An unsigned integer cannot be negative. Try deleting the violating line
patternset.cpp:188 or even the whole surrounding if statement.

Best,
Fabian

On 09.07.2018 13:11, Andreas Tille wrote:
> patternset.cpp:188:23: error: call of overloaded 'abs(uint32_t&)' is ambiguous
>    size = std::abs(size);


Reply to: