Skip to content

Commit 633f80d

Browse files
committed
Added final keyword
1 parent e0a1cc5 commit 633f80d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/oup/observable_unique_ptr.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace details {
103103
* to `oup::` classes as required.
104104
*/
105105
template<typename Policy>
106-
class basic_control_block {
106+
class basic_control_block final {
107107
template<typename T, typename D, typename P>
108108
friend class oup::basic_observable_ptr;
109109

@@ -247,7 +247,7 @@ constexpr bool has_enable_observer_from_this = std::is_base_of_v<
247247
* \see enable_observer_from_this_sealed
248248
*/
249249
template<typename T, typename Deleter, typename Policy>
250-
class basic_observable_ptr {
250+
class basic_observable_ptr final {
251251
public:
252252
static_assert(!std::is_array_v<T>, "T[] is not supported");
253253

@@ -756,7 +756,7 @@ bool operator!= (const basic_observable_ptr<T,Deleter,Policy>& first,
756756
* \see observable_sealed_ptr
757757
*/
758758
template<typename T, typename Policy>
759-
class basic_observer_ptr {
759+
class basic_observer_ptr final {
760760
public:
761761
static_assert(!std::is_array_v<T>, "T[] is not supported");
762762

0 commit comments

Comments
 (0)