From 2356c76ac32486af998b2af4f9bf0968c1c3e746 Mon Sep 17 00:00:00 2001 From: Benny Baumann <BenBE@geshi.org> Date: Sun, 31 Mar 2019 16:54:19 +0200 Subject: [PATCH] chg: More visibility for std::enable_shared_from_this --- src/ui/display.hpp | 2 +- src/ui/view.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/display.hpp b/src/ui/display.hpp index 20c2072..b18fd3a 100644 --- a/src/ui/display.hpp +++ b/src/ui/display.hpp @@ -15,7 +15,7 @@ namespace rmrf::ui { * It implements some basic information handling and a registry for * views. */ -class display : private std::enable_shared_from_this<display> { +class display : public std::enable_shared_from_this<display> { public: typedef display self_type; typedef std::shared_ptr<self_type> ptr_type; diff --git a/src/ui/view.hpp b/src/ui/view.hpp index 16d197e..ebb0e13 100644 --- a/src/ui/view.hpp +++ b/src/ui/view.hpp @@ -14,7 +14,7 @@ namespace rmrf::ui { /** * This abstract class implements a view page. */ -class view : public ui_context, private std::enable_shared_from_this<view> { +class view : public ui_context, public std::enable_shared_from_this<view> { private: std::shared_ptr<view> parent_view; std::list<std::shared_ptr<view>> child_views; -- GitLab