I try to build CRF++ in Visual Studio 2013 and get this error in the last line:
array_[begin + siblings[i].code].base =
value_ ?
static_cast<array_type_>(-value_[siblings[i].left]-1) :
static_cast<array_type_>(-siblings[i].left-1);
error C4146: unary minus operator applied to unsigned type, result still unsigned
Specifically, it is in darts.h, line 189.
I built again in Visual Studio 2015 then there is no error.
How can I fix this in Visual Studio 2013?
value_
? – Dysthymiaarray_type_
is defined as? – Dysthymiastatic_cast<array_type_>
something if is alreadyarray_type_
once dereferenced viavalue_[...]
, where you've said abovevalue_
isarray_type_*
? – Lepanto