3

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?

vlad_tepesch
  • 6,681
  • 1
  • 38
  • 80

0 Answers0