Hi, I'm trying to build and test GUnit and am running into some errors.
I clone each of the libraries and then build a build folder and run cmake .. After that I run the make command and get the following error.
cmake ..
make
GUnit/include/GUnit/GSteps.h:580:68: error: use 'template' keyword to treat 'get' as a dependent template name
Hi, I'm getting the same error after downloading from master. The fix is in GSteps.h, in GSteps::NextStep()
"template " needs to be inserted in two places (lines 580 and 583):
void NextStep() { ... std::size_t tmp_line{}; nlohmann::json expected_step{}; for (const auto& exp_step : pickle_steps_) { if (exp_step["text"] == expectedStep.second->name) { if (exp_step["text"] == expectedStep.second->name) { const auto line = exp_step["locations"].back()["line"].template get<std::size_t>(); // here if (line > line_) { expected_step = exp_step; tmp_line = exp_step["locations"].back()["line"].template get<std::size_t>(); // and here break; } } } } ... }
Activity
chrisdbowen commentedon Jan 20, 2025
Hi, I'm getting the same error after downloading from master. The fix is in GSteps.h, in GSteps::NextStep()
"template " needs to be inserted in two places (lines 580 and 583):