Skip to content

Commit 8133e56

Browse files
committed
tidy up type traits
1 parent 1c19d44 commit 8133e56

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

include/boost/buffers/detail/type_traits.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ namespace boost {
1818
namespace buffers {
1919
namespace detail {
2020

21+
//#if defined(__cpp_lib_concepts) && __cpp_lib_concepts >= 201907
22+
//template<class T>
23+
//using is_bidirectional_iterator = std::is_bidirectional_iterator<T>;
24+
//#else
25+
26+
// C++11 version of is_bidirectional_iterator
27+
2128
// Alias for true_type if T is a BidirectionalIterator
2229
template<class T, class = void>
2330
struct is_bidirectional_iterator : std::false_type
@@ -88,6 +95,8 @@ struct is_bidirectional_iterator<T, void_t<decltype(
8895
{
8996
};
9097

98+
//#endif
99+
91100
} // detail
92101
} // buffers
93102
} // boost

include/boost/buffers/range.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ constexpr struct
7979
}
8080
} begin {};
8181

82+
//------------------------------------------------------------------------------
83+
8284
/** Return an iterator to the end of the buffer sequence.
8385
*/
8486
constexpr struct

0 commit comments

Comments
 (0)