summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 11:09:11 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 11:09:11 +0100
commit9d7ce55168a08c967642f0e4fcc0624bebca523f (patch)
treefae7b7da40d90ac694b4df4132cd29e5a9498c9a
parent34ae080c65fef96cc35f7b86c1231b01cb4df8f4 (diff)
feat: implement `OCL_ROPE_IMPL`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--include/ocl/tproc/detail/rope_fwd.hpp7
-rw-r--r--src/tproc/rope_impl.cpp1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/ocl/tproc/detail/rope_fwd.hpp b/include/ocl/tproc/detail/rope_fwd.hpp
index e7dbebb..dd3c6d1 100644
--- a/include/ocl/tproc/detail/rope_fwd.hpp
+++ b/include/ocl/tproc/detail/rope_fwd.hpp
@@ -44,8 +44,15 @@ public:
private:
struct impl;
std::unique_ptr<impl> impl_;
+
+#if !defined(OCL_ROPE_IMPL)
+ struct impl {};
+#endif
};
+
+
+
#if __cplusplus >= 201811L
#ifdef __cpp_char8_t
using u8rope = basic_rope<char8_t>;
diff --git a/src/tproc/rope_impl.cpp b/src/tproc/rope_impl.cpp
index 4081a61..2e5cdf2 100644
--- a/src/tproc/rope_impl.cpp
+++ b/src/tproc/rope_impl.cpp
@@ -3,4 +3,5 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Official repository: https://github.com/ocl-org/tproc
+#define OCL_ROPE_IMPL 1
#include <ocl/tproc/rope.hpp>