Skip to content

Commit 7305395

Browse files
committed
add complex, memory those two headers
1 parent 3c33fb0 commit 7305395

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [ubuntu-latest, windows-latest]
19-
# os: [ubuntu-latest, windows-latest, macOS-latest]
18+
os: [ubuntu-latest, windows-latest, macOS-latest]
2019

2120
steps:
2221
- uses: actions/checkout@v4

include/zeroerr/internal/typetraits.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#include <string>
77
#include <tuple> // this should be removed
88
#include <type_traits>
9-
#include <iosfwd>
9+
#include <complex>
10+
#include <memory>
1011

1112
ZEROERR_SUPPRESS_COMMON_WARNINGS_PUSH
1213

include/zeroerr/print.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "zeroerr/color.h"
55
#include "zeroerr/internal/typetraits.h"
6-
#include <complex>
76

87
#ifdef __GNUG__
98
#include <cxxabi.h>

test/log_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ TEST_CASE("log_test") {
1818
WARN("Test Warning {print}", "print data");
1919

2020
ERR_IF(1 == 1, "1 == 1");
21+
22+
for (int i = 0; i < 10; ++i) {
23+
LOG_EVERY_(3, "log every 3 times {i}", i);
24+
}
2125
}
2226

2327

zeroerr.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,11 @@ __attribute__((always_inline)) __inline__ static bool isDebuggerActive() { retur
727727
#include <string>
728728
#include <tuple> // this should be removed
729729
#include <type_traits>
730-
#include <iosfwd>
730+
#include <complex>
731+
#include <memory>
731732

732733
ZEROERR_SUPPRESS_COMMON_WARNINGS_PUSH
733734

734-
// those predefines can help to avoid include too many headers
735735

736736
namespace zeroerr {
737737

@@ -1291,7 +1291,6 @@ ZEROERR_SUPPRESS_COMMON_WARNINGS_POP
12911291

12921292

12931293

1294-
#include <complex>
12951294

12961295
#ifdef __GNUG__
12971296
#include <cxxabi.h>

0 commit comments

Comments
 (0)