Skip to content

Commit

Permalink
ASIO_HAS_DECL_TYPE should be ASIO_HAS_DECLTYPE in is_buffer_sequence.…
Browse files Browse the repository at this point in the history
…hpp.
  • Loading branch information
lukebelliott authored and chriskohlhoff committed Nov 3, 2018
1 parent 6554073 commit 98e0bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asio/include/asio/detail/is_buffer_sequence.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,23 @@ char consume_memfn_helper(
template <typename, typename>
char (&buffer_element_type_helper(...))[2];

#if defined(ASIO_HAS_DECL_TYPE)
#if defined(ASIO_HAS_DECLTYPE)

template <typename T, typename Buffer>
char buffer_element_type_helper(T* t,
typename enable_if<is_convertible<
decltype(*buffer_sequence_begin(*t)),
Buffer>::value>::type*);

#else // defined(ASIO_HAS_DECL_TYPE)
#else // defined(ASIO_HAS_DECLTYPE)

template <typename T, typename Buffer>
char buffer_element_type_helper(
typename T::const_iterator*,
typename enable_if<is_convertible<
typename T::value_type, Buffer>::value>::type*);

#endif // defined(ASIO_HAS_DECL_TYPE)
#endif // defined(ASIO_HAS_DECLTYPE)

template <typename>
char (&const_buffers_type_typedef_helper(...))[2];
Expand Down

0 comments on commit 98e0bf1

Please sign in to comment.