From be96a6ad63cb5cfc789efd64e6a40dc99c69a8e1 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Mon, 5 Dec 2022 06:41:00 +0200 Subject: [PATCH] I sometimes forget that I'm not necessarily on C++17 --- test/t-shared_from-11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/t-shared_from-11.cpp b/test/t-shared_from-11.cpp index 8c65adc..1de0595 100644 --- a/test/t-shared_from-11.cpp +++ b/test/t-shared_from-11.cpp @@ -9,7 +9,7 @@ class session : public itlib::enable_shared_from { using itlib::enable_shared_from::weak_from; using itlib::enable_shared_from::shared_from; - auto clone() { + std::shared_ptr clone() { return shared_from(this); } };