ivutils
|
Template to use in compile-time branch selection. More...
#include <utiltl.h>
Template to use in compile-time branch selection.
Example: call_if<compile_time_bool_const>([&, this](auto &abstract_arg) { abstract_arg->func(...); }, arg_from_scope ); This compiles even when arg_from_scope->func() is not defined for compile_time_bool_const= false.