Skip to content

Commit

Permalink
fix: fix fake Intellisense error
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Apr 29, 2024
1 parent 2163ef0 commit 863c38b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ll/api/reflection/Deserialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ namespace ll::reflection {

template <class T, class J>
[[nodiscard]] inline Expected<> deserialize(T& t, J&& j) noexcept
#if !defined(__INTELLISENSE__)
requires(requires(T& t, J&& j) { deserialize_impl<T>(t, std::forward<J>(j), meta::PriorityTag<4>{}); })
#endif
try {
return deserialize_impl<T>(t, std::forward<J>(j), meta::PriorityTag<4>{});
} catch (...) {
Expand Down
2 changes: 2 additions & 0 deletions src/ll/api/reflection/Serialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ namespace ll::reflection {

template <class J, class T>
[[nodiscard]] inline Expected<J> serialize(T&& t) noexcept
#if !defined(__INTELLISENSE__)
requires(requires(T&& t) { serialize_impl<J>(std::forward<T>(t), meta::PriorityTag<4>{}); })
#endif
try {
return serialize_impl<J>(std::forward<T>(t), meta::PriorityTag<4>{});
} catch (...) {
Expand Down

0 comments on commit 863c38b

Please sign in to comment.