From 08806d1ebfadd571821ddecfa7da2d31b7c0a6ff Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Sun, 5 Nov 2023 13:16:51 +0100 Subject: [PATCH] Added qualifications to the comments regading Box and Ref --- include/rfl/Box.hpp | 4 +++- include/rfl/Ref.hpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/rfl/Box.hpp b/include/rfl/Box.hpp index deb39a48..372b1f28 100644 --- a/include/rfl/Box.hpp +++ b/include/rfl/Box.hpp @@ -7,7 +7,9 @@ namespace rfl { /// The Box class behaves very similarly to the unique_ptr, but unlike the -/// unique_ptr, it is 100% guaranteed to be filled at all times. +/// unique_ptr, it is 100% guaranteed to be filled at all times (unless the user +/// tries to access it after calling std::move does something else that is +/// clearly bad practice). template class Box { public: diff --git a/include/rfl/Ref.hpp b/include/rfl/Ref.hpp index df3b5667..6bda2e02 100644 --- a/include/rfl/Ref.hpp +++ b/include/rfl/Ref.hpp @@ -7,7 +7,9 @@ namespace rfl { /// The Ref class behaves very similarly to the shared_ptr, but unlike the -/// shared_ptr, it is 100% guaranteed to be filled at all times. +/// unique_ptr, it is 100% guaranteed to be filled at all times (unless the user +/// tries to access it after calling std::move does something else that is +/// clearly bad practice). template class Ref { public: