Skip to content

Commit

Permalink
Silence MSVC warning about including <expected> when not targeting C+…
Browse files Browse the repository at this point in the history
…+23. (#1130)
  • Loading branch information
helmesjo authored Jul 2, 2024
1 parent dd08fa2 commit 31010db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/glaze/util/expected.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace glz
}

#ifdef __has_include
#if __has_include(<expected>)
#if __has_include(<expected>) && __cpp_lib_expected >= 202202L
#include <expected>
#elif __has_include(<experimental/expected>)
#include <experimental/expected>
Expand Down

0 comments on commit 31010db

Please sign in to comment.