Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues building GUnit #96

Open
DaneR-ctrl opened this issue Sep 6, 2024 · 1 comment
Open

Issues building GUnit #96

DaneR-ctrl opened this issue Sep 6, 2024 · 1 comment

Comments

@DaneR-ctrl
Copy link

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.

GUnit/include/GUnit/GSteps.h:580:68: error: use 'template' keyword to treat 'get' as a dependent template name

@chrisdbowen
Copy link

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;
            }
          }
        }
      }
    ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants