mirror of
https://github.com/Naios/continuable.git
synced 2025-12-07 17:26:47 +08:00
Fix a MSVC test failure
This commit is contained in:
parent
4c39532d7c
commit
c72d1afa8b
@ -284,11 +284,17 @@ struct strategy_remap_tag {};
|
||||
template <typename Mapper, typename T>
|
||||
using is_effective_t = traits::is_invocable<typename Mapper::traversor_type, T>;
|
||||
|
||||
// TODO find out whether the linear compile-time instantiation is faster:
|
||||
// template <typename Mapper, typename... T>
|
||||
// struct is_effective_any_of_t
|
||||
// : traits::disjunction<is_effective_t<Mapper, T>...> {};
|
||||
// template <typename Mapper>
|
||||
// struct is_effective_any_of_t<Mapper> : std::false_type {};
|
||||
|
||||
/// Deduces to a true type if any type leads to at least one effective
|
||||
/// call to the mapper.
|
||||
template <typename Mapper, typename... T>
|
||||
struct is_effective_any_of_t;
|
||||
|
||||
template <typename Mapper, typename First, typename... Rest>
|
||||
struct is_effective_any_of_t<Mapper, First, Rest...>
|
||||
: std::conditional<is_effective_t<Mapper, First>::value, std::true_type,
|
||||
|
||||
@ -548,7 +548,7 @@ TEST(test_strategic_container_traverse, traverse_move_only_wrapped) {
|
||||
|
||||
std::size_t counter = 0;
|
||||
traverse_pack(
|
||||
[&counter](auto&& ptr) {
|
||||
[&counter](auto&& ptr) -> void {
|
||||
auto moved(std::forward<decltype(ptr)>(ptr));
|
||||
EXPECT_EQ((*moved), 5);
|
||||
++counter;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user