Skip to content

Commit

Permalink
less ctad for old msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
correaa committed Feb 16, 2025
1 parent 53c041f commit 23c8daa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/boost/multi/detail/index_range.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,13 @@ struct extension_t : public range<IndexType, IndexTypeLast> {
}
};

#if defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201703)
template<class IndexType, class IndexTypeLast>
extension_t(IndexType, IndexTypeLast) -> extension_t<IndexType, IndexTypeLast>;

template<class IndexType>
extension_t(IndexType) -> extension_t<IndexType>;
#endif

template<class IndexType = std::ptrdiff_t, class IndexTypeLast = decltype(std::declval<IndexType>() + 1)>
constexpr auto make_extension_t(IndexType first, IndexTypeLast last) -> extension_t<IndexType, IndexTypeLast> {
Expand Down

0 comments on commit 23c8daa

Please sign in to comment.