Skip to content

Commit

Permalink
Update deduction guides for vector
Browse files Browse the repository at this point in the history
  • Loading branch information
morzhovets committed Nov 7, 2024
1 parent 0d4773f commit 4f2f359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/momo/stdish/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ class vector

#ifdef MOMO_HAS_DEDUCTION_GUIDES
template<typename Iterator,
typename Allocator = std::allocator<typename std::iterator_traits<Iterator>::value_type>>
typename Allocator = std::allocator<typename std::iterator_traits<Iterator>::value_type>,
typename = decltype(std::declval<Allocator&>().allocate(size_t{}))>
vector(Iterator, Iterator, Allocator = Allocator())
-> vector<typename std::iterator_traits<Iterator>::value_type, Allocator>;
#endif
Expand Down
2 changes: 0 additions & 2 deletions test/sources/libcxx/vector/vector.cons/deduct.pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ TEST_CONSTEXPR_CXX20 bool tests() {
}
}

#if MOMO_VERSION_MAJOR > 3
//SequenceContainerDeductionGuidesSfinaeAway<std::vector, std::vector<int>>();
SequenceContainerDeductionGuidesSfinaeAway<momo::stdish::vector, momo::stdish::vector<int>>();
#endif

return true;
}
Expand Down

0 comments on commit 4f2f359

Please sign in to comment.