Skip to content

Commit 467b07d

Browse files
elbenokris-jusiak
authored andcommitted
🐛 Fix std includes for GTest.h
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`)
1 parent 9872bc3 commit 467b07d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/GUnit/GTest.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
#include <gtest/gtest.h>
1111

1212
#include <algorithm>
13+
#include <iomanip>
14+
#include <iostream>
1315
#include <memory>
1416
#include <string>
17+
#include <tuple>
18+
#include <type_traits>
1519

1620
#include "GUnit/Detail/Preprocessor.h"
1721
#include "GUnit/Detail/RegexUtils.h"

0 commit comments

Comments
 (0)