Feature request: isconstant
function or macro
#50176
Labels
feature
Indicates new feature / enhancement requests
It would be useful to have an
isconstant
function or macro which returns true if the input is a constant, otherwise returns false. What do I mean by "constant"? I mean that ifv
is not a constant, thensomefunc(Val(v))
will trigger a dynamic dispatch, otherwise it won't.Having such a function/macro would enable at least two useful things:
The text was updated successfully, but these errors were encountered: