From b0fadeab9854e57e0db19ca861e26004f71a97ce Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 24 Nov 2017 12:26:11 -0500 Subject: [PATCH] add Buffer::Iterator::clonep() --- src/core/Buffer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/Buffer.h b/src/core/Buffer.h index 36252eb..a79cf74 100644 --- a/src/core/Buffer.h +++ b/src/core/Buffer.h @@ -102,6 +102,10 @@ public: } size_t line() const { return m_line; } size_t offset() const { return m_offset; } + std::shared_ptr clonep() + { + return std::make_shared(*this); + } protected: friend struct Range;