We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03629c7 commit d70fbabCopy full SHA for d70fbab
cp-algo/util/checkpoint.hpp
@@ -6,8 +6,9 @@
6
#include <map>
7
namespace cp_algo {
8
template<bool final = false>
9
- void checkpoint([[maybe_unused]] auto const& msg = "") {
+ void checkpoint([[maybe_unused]] auto const& _msg = "") {
10
#ifdef CP_ALGO_CHECKPOINT
11
+ std::string msg = _msg;
12
static std::map<std::string, double> checkpoints;
13
static double last = 0;
14
double now = (double)clock() / CLOCKS_PER_SEC;
0 commit comments