24-07-2025, 06:55 PM
Is the following considered to be compliant:
By itself it seems not to be in the spirit of the rule since there's no "const" in the declaration. But what if the only instantiation is something like:
Thank you.
Code:
template <typename T>
T var = 42;
By itself it seems not to be in the spirit of the rule since there's no "const" in the declaration. But what if the only instantiation is something like:
Code:
int foo() { return var<const int>; }
Thank you.