]> https://gitweb.dealii.org/ - dealii.git/commit
AssertNothrow: use the 'if (false)' trick.
authorDavid Wells <drwells@email.unc.edu>
Fri, 23 May 2025 17:01:46 +0000 (13:01 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 23 May 2025 17:01:46 +0000 (13:01 -0400)
commit01e1bfb7b2a6c1a9a512f55666b3ec97bc892f0e
tree08c6e1fcb4d04dc6067cd473fec4d11d61373cff
parent4b434670a0f7b20cbfc92ac15016a31db7282beb
AssertNothrow: use the 'if (false)' trick.

This should handle unused variable warnings for all presently supported
compilers - it is the same trick we now use for Assert().
include/deal.II/base/exception_macros.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.