2 ms·
> ...how do you debug it when it only runs at compile time? I prefer to unit test my constexpr logic with a bunch of static assertions in a cpp file. You could
by humanrebar 9y ago
> ...how do you debug it when it only runs at compile time?
I prefer to unit test my constexpr logic with a bunch of static assertions in a cpp file. You could put them in with the code being debugged, but having them separate keeps the header files lighter weight with no real downside assuming you have CI or something set up.