Skip to content

Commit

Permalink
Revert "Relax service map probe for MSVC"
Browse files Browse the repository at this point in the history
This reverts commit 49dce64.
  • Loading branch information
gracicot committed Apr 29, 2024
1 parent 49dce64 commit 189d701
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
16 changes: 6 additions & 10 deletions include/kangaru/detail/define.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@

#ifndef KGR_KANGARU_USE_ALTERNATE_MAP_PROBE
#if ( \
!(defined(__clang__) && __clang_major__ < 7 && !defined(__APPLE__)) && \
!(defined(_MSC_VER) && !defined(__clang__)) && \
!(defined(__APPLE__) && defined(__clang__) && __clang_major__ == 10 && __clang_patchlevel__ < 1) && \
!(defined(__APPLE__) && defined(__clang__) && __clang_major__ < 10) \
defined(_MSC_VER) || (\
!(defined(__clang__) && __clang_major__ < 7 && !defined(__APPLE__)) && \
!(defined(_MSC_VER) && !defined(__clang__)) && \
!(defined(__APPLE__) && defined(__clang__) && __clang_major__ == 10 && __clang_patchlevel__ < 1) && \
!(defined(__APPLE__) && defined(__clang__) && __clang_major__ < 10) \
) \
)
#define KGR_KANGARU_USE_ALTERNATE_MAP_PROBE
#endif
Expand All @@ -41,12 +43,6 @@
#endif
#endif

#ifndef KGR_KANGARU_MSVC_RELAX_PROBE
#ifdef _MSC_VER
#define KGR_KANGARU_MSVC_RELAX_PROBE
#endif
#endif

#ifndef KGR_KANGARU_MSVC_NO_DEPENDENT_TEMPLATE_KEYWORD
#if defined(_MSC_VER) && _MSC_VER <= 1900
#ifndef __clang__
Expand Down
13 changes: 2 additions & 11 deletions include/kangaru/detail/service_map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,11 @@ struct probe {
operator T&& ();

template<typename T, enable_if_t<

std::is_same<T const&, S>::value
#ifdef KGR_KANGARU_MSVC_RELAX_PROBE
|| std::is_same<T const&, constify<S>>
#endif
, int> = 0>
std::is_same<T const&, S>::value, int> = 0>
operator T const& () const;

template<typename T, enable_if_t<
std::is_same<T const&&, S&&>::value
#ifdef KGR_KANGARU_MSVC_RELAX_PROBE
|| std::is_same<T const&&, constify<S>&&>
#endif
, int> = 0>
std::is_same<T const&&, S&&>::value, int> = 0>
operator T const&& () const;
};

Expand Down

0 comments on commit 189d701

Please sign in to comment.