Skip to content

Commit

Permalink
guard ctad for old msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 12, 2025
1 parent e278f07 commit d9bbb7f
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 @@ -224,8 +224,10 @@ class range {
}
};

#if defined(__cpp_deduction_guides) && (__cpp_deduction_guides >= 201703)
template<typename IndexType, typename IndexTypeLast = IndexType> // , class Plus = std::plus<>, class Minus = std::minus<> >
range(IndexType, IndexTypeLast) -> range<IndexType, IndexTypeLast>; // #3
#endif

template<class IndexType = std::true_type, typename IndexTypeLast = IndexType>
constexpr auto make_range(IndexType first, IndexTypeLast last) -> range<IndexType, IndexTypeLast> {
Expand Down

0 comments on commit d9bbb7f

Please sign in to comment.