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,475
  • 1
  • 34
  • 76

0 Answers0