Skip to content

Commit 86239cf

Browse files
Next attempt
1 parent 32bd925 commit 86239cf

2 files changed

Lines changed: 2 additions & 15 deletions

File tree

include/rfl.hpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77
#pragma warning(disable : 4101)
88
#endif
99

10-
#if __GNUC__
11-
#ifndef __clang__
12-
#pragma GCC diagnostic push
13-
#pragma GCC diagnostic ignored "-Wstringop-overflow="
14-
#endif
15-
#endif
16-
1710
#include "rfl/AddStructName.hpp"
1811
#include "rfl/AddTagsToVariants.hpp"
1912
#include "rfl/AllOf.hpp"
@@ -99,10 +92,4 @@
9992
#pragma warning(pop)
10093
#endif
10194

102-
#if __GNUC__
103-
#ifndef __clang__
104-
#pragma GCC diagnostic pop
105-
#endif
106-
#endif
107-
10895
#endif

include/rfl/Result.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ class Error {
2020
Error() = default;
2121

2222
Error(const std::string& _what) : what_(_what) {}
23-
Error(std::string&& _what) : what_(std::move(_what)) {}
23+
Error(std::string _what) : what_(std::move(_what)) {}
2424

2525
~Error() = default;
2626

27-
Error(const Error& e) = default;
27+
Error(const Error& e) noexcept = default;
2828
Error(Error&& e) noexcept = default;
2929

3030
Error& operator=(const Error& _other) = default;

0 commit comments

Comments
 (0)