Check at compile time that a function call triggers a static_assert(false)
Check at compile time that a function call triggers a static_assert(false)
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/12075306/llu%c3%ads-alemany-puig)Lluís Alemany-Puig
(stackoverflow.com/users/8586227/davis-herring)Davis Herring
(stackoverflow.com/users/4184203/lhlaurini)LHLaurini
(stackoverflow.com/users/2894535/dominik-kaszewski)Dominik Kaszewski
(stackoverflow.com/users/65863/remy-lebeau)Remy Lebeau
(stackoverflow.com/users/16649550/pepijn-kramer)Pepijn Kramer
A special thanks goes out to the (stackoverflow.com/questions/79626711/check-at-compile-time-that-a-function-call-triggers-a-static-assertfalse)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
c++23 c++20 static-assert compile-time c++