Hello
The around thread becomes new from R20 and it does not work with the old code.
I am trying while looking at the SDK sample, but it does not move with an error.
No 1 error
An operator that handles the right operand of maxon :: ResultMemT <maxon :: BaseRef <IMPLEMENTATION, maxon :: StrongRefHandler >> 'can not be found (or can not be converted).
class MyThread : public maxon::ThreadInterfaceTemplate<MyThread>
{
public:
const char* GetName() const { return "MyThread"; }
maxon::Result<void> operator ()()
{
GePrint("ok"_s);
}
};
class MenuTest : public CommandData
{
static maxon::ThreadRefTemplate<MyThread> g_test;
public:
virtual Bool Execute(BaseDocument doc);
};
Bool MenuTest::Execute(BaseDocument doc)
{
if (!g_test) g_test = MyThread::Create() iferr_return; // No1 Error
}
Please tell me if you can understand.