I would like to have an mechanism that works like static_assert (condition evaluated by compiler at compiletime (using sizeof)) but that throws warnings only.
Is there some mechanism to achieve this in a compiler independent way?
I would like to have an mechanism that works like static_assert (condition evaluated by compiler at compiletime (using sizeof)) but that throws warnings only.
Is there some mechanism to achieve this in a compiler independent way?