Re: enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Christian Schneider
Am 29.08.19 um 13:44 schrieb Jonathan Wakely: On Thu, 29 Aug 2019 at 12:43, Jonathan Wakely wrote: On Thu, 29 Aug 2019 at 11:50, Christian Schneider wrote: Am 29.08.19 um 12:07 schrieb Jonathan Wakely: On Thu, 29 Aug 2019 at 10:15, Christian Schneider wrote: Hello, I just discovered,

Re: enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Jonathan Wakely
On Thu, 29 Aug 2019 at 12:43, Jonathan Wakely wrote: > > On Thu, 29 Aug 2019 at 11:50, Christian Schneider > wrote: > > > > Am 29.08.19 um 12:07 schrieb Jonathan Wakely: > > > On Thu, 29 Aug 2019 at 10:15, Christian Schneider > > > wrote: > > >> > > >> Hello, > > >> I just discovered, that, when

Re: enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Jonathan Wakely
On Thu, 29 Aug 2019 at 11:50, Christian Schneider wrote: > > Am 29.08.19 um 12:07 schrieb Jonathan Wakely: > > On Thu, 29 Aug 2019 at 10:15, Christian Schneider > > wrote: > >> > >> Hello, > >> I just discovered, that, when using enable_shared_from_this and > >> inheriting it privately, this fail

Re: enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Christian Schneider
Am 29.08.19 um 12:07 schrieb Jonathan Wakely: On Thu, 29 Aug 2019 at 10:15, Christian Schneider wrote: Hello, I just discovered, that, when using enable_shared_from_this and inheriting it privately, this fails at runtime. I made a small example: #include #include #include #include #ifnde

Re: enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Jonathan Wakely
On Thu, 29 Aug 2019 at 10:15, Christian Schneider wrote: > > Hello, > I just discovered, that, when using enable_shared_from_this and > inheriting it privately, this fails at runtime. > I made a small example: > > #include > #include > #include > #include > > #ifndef prefix > #define prefix st

enable_shared_from_this fails at runtime when inherited privately

2019-08-29 Thread Christian Schneider
Hello, I just discovered, that, when using enable_shared_from_this and inheriting it privately, this fails at runtime. I made a small example: #include #include #include #include #ifndef prefix #define prefix std #endif class foo: prefix::enable_shared_from_this { public: prefix::