Skip to content

Commit d6a91c9

Browse files
Declare Result.hpp a system header to suppress warnings
1 parent 45f1336 commit d6a91c9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

include/rfl/Result.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
#define RFL_RESULT_HPP_
33

44
#ifdef REFLECTCPP_USE_STD_EXPECTED
5+
56
#include <expected>
7+
8+
#else
9+
10+
// Necessary workaround due to a false positive warning in GCC 14.
11+
#if __GNUC__
12+
#ifndef __clang__
13+
#pragma GCC system_header
14+
#endif
15+
#endif
16+
617
#endif
718

819
#include <array>

include/rfl/internal/bind_to_tuple.hpp

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

88
#include "../Tuple.hpp"
99
#include "../always_false.hpp"
10-
// #include "is_named_tuple.hpp" //Not here
1110
#include "num_fields.hpp"
1211

1312
namespace rfl::internal {

0 commit comments

Comments
 (0)