oh, wait, doesn't make any sence, in case of exception `nanMode` is always `ENanMode::Forbidden`
#include <util/generic/array_ref.h>
#include <util/generic/ymath.h>
-#include <util/stream/labeled.h>
namespace NCB {
inline size_t Quantize(const float value, const TConstArrayRef<float> borders, const ENanMode nanMode) {
if (IsNan(value)) {
- CB_ENSURE(ENanMode::Forbidden != nanMode, "NaNs are forbidden; " << LabeledOutput(nanMode));
+ CB_ENSURE(ENanMode::Forbidden != nanMode, "NaNs are forbidden");
return ENanMode::Min == nanMode ? 0 : borders.size();
}
