C++ Logo

std-discussion

Advanced search

Re: Passing member functions to a thread in the face of relocations - is this standard C++11?

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sat, 13 Aug 2022 08:54:02 -0700
On Saturday, 13 August 2022 01:57:13 PDT David Carter via Std-Discussion
wrote:
> I've fixed this by putting the class containing the thread pool on the heap
> (i.e. ClassName above). Subtle!

Without a full testcase to look at, I'm only going to guess your problem was
SIOF.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2022-08-13 15:54:04