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

🐛 Fix std includes for GTest.h #99

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

elbeno
Copy link
Contributor

@elbeno elbeno commented Dec 16, 2024

Problem:

  • GTest.h uses constructs from std:: without including them; in later versions of GoogleTest they are not necessarily transitively included.

Solution:

  • Add includes for:
    • iomanip (std::left, std::setw)
    • iostream (std::cout, std::endl)
    • tuple (std::tie)
    • type_traits (various e.g. std::is_same)

Problem:
- GTest.h uses constructs from `std::` without including them; in later versions
  of GoogleTest they are not necessarily transitively included.

Solution:
- Add includes for:
  - `iomanip` (`std::left`, `std::setw`)
  - `iostream` (`std::cout`, `std::endl`)
  - `tuple` (`std::tie`)
  - `type_traits` (various e.g. `std::is_same`)
@kris-jusiak kris-jusiak merged commit 467b07d into cpp-testing:master Dec 16, 2024
3 checks passed
@kris-jusiak
Copy link
Contributor

Thanks @elbeno

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

Successfully merging this pull request may close these issues.

2 participants