<yvals_core.h>
: _EMIT_STL_ERROR
leads to uninformative error logs
#4009
Labels
<yvals_core.h>
: _EMIT_STL_ERROR
leads to uninformative error logs
#4009
#2897 introduced:
STL/stl/inc/yvals_core.h
Lines 512 to 514 in 6c69a73
This emits a
#pragma message
which is captured in full build logs but not error-only logs, followed by astatic_assert
which does appear in error-only logs but with a message that doesn't say what's actually wrong.This has the potential to confuse users who are looking at error-only logs; e.g. in twistedfall/opencv-rust#452 the problem was very simple (Clang version was too old), but the
static_assert
lost the reason.For
_EMIT_STL_ERROR
, I think we should usestatic_assert
alone (with the givenNUMBER
andMESSAGE
); I don't see any reason to use#pragma message
here.The text was updated successfully, but these errors were encountered: