reports errors using a plain assert(false); when ETL_DEBUG is defined.
I believe this is an error since all other assert(false); in this context is enabled when ETL_IN_UNIT_TEST is defined, and this single one is enabled when ETL_DEBUG is defined.
This causes an error in my environment where assert isn't available, and where I would like errors to be reported by defining ETL_LOG_ERRORS and setting an error handler via etl::error_handler::set_callback.
In etl version 20.38.6 the offending code is at include/etl/private/variant_variadic.h lines 230-232.
Hi,
When using etl::variant with C++11 enabled, the internal function
reports errors using a plain
assert(false);
whenETL_DEBUG
is defined.I believe this is an error since all other
assert(false);
in this context is enabled whenETL_IN_UNIT_TEST
is defined, and this single one is enabled whenETL_DEBUG
is defined.This causes an error in my environment where
assert
isn't available, and where I would like errors to be reported by definingETL_LOG_ERRORS
and setting an error handler viaetl::error_handler::set_callback
.In etl version
20.38.6
the offending code is atinclude/etl/private/variant_variadic.h
lines 230-232.