Skip to content

Commit

Permalink
🐛 Fix std includes for GTest.h
Browse files Browse the repository at this point in the history
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`)
  • Loading branch information
elbeno authored and kris-jusiak committed Dec 16, 2024
1 parent 9872bc3 commit 467b07d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/GUnit/GTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
#include <gtest/gtest.h>

#include <algorithm>
#include <iomanip>
#include <iostream>
#include <memory>
#include <string>
#include <tuple>
#include <type_traits>

#include "GUnit/Detail/Preprocessor.h"
#include "GUnit/Detail/RegexUtils.h"
Expand Down

0 comments on commit 467b07d

Please sign in to comment.