diff --git a/src/include/buffer.h b/src/include/buffer.h index 606025005b0..f5b9094928b 100644 --- a/src/include/buffer.h +++ b/src/include/buffer.h @@ -189,7 +189,7 @@ namespace buffer CEPH_BUFFER_API { const char *end_ptr; ///< pointer to bp->end_c_str() const bool deep; ///< if true, do not allow shallow ptr copies - iterator_impl(std::conditional_t p, + iterator_impl(typename std::conditional::type p, size_t offset, bool d) : bp(p), start(p->c_str() + offset), @@ -201,7 +201,7 @@ namespace buffer CEPH_BUFFER_API { friend class ptr; public: - using pointer = std::conditional_t; + using pointer = typename std::conditional::type; pointer get_pos_add(size_t n) { auto r = pos; advance(n);