Define ETL_USING_LEGACY_VARIANT
as a convenience macro for code that tries to support both new and legacy variants
#920
Labels
Right now one has to repeat the condition in <etl/variant.h>, e.g.
#if !ETL_USING_CPP11 || defined(ETL_USE_LEGACY_VARIANT)
but it would be nicer to do#if ETL_USING_LEGACY_VARIANT
. Obviously, it would be as simple as#define ETL_USING_LEGACY_VARIANT !ETL_USING_CPP11 || defined(ETL_USE_LEGACY_VARIANT)
The text was updated successfully, but these errors were encountered: