Looks like this issue is not going to be resolved, or it's just that nobody realy uses pure c++11 on Android, anyway if you need anonymous thread created on fly, try something like this until threads are fixed:
namespace Threading
{
class TAnonymousThreadTask: public TCppInterfacedObject<TProc>
{
private:
std::function<void()> f;
public:
template<typename _Callable, typename... _Args>
explicit
__fastcall TAnonymousThreadTask(_Callable&& __f, _Args&&... __args)
{
this->f = std::bind(__f,__args...);
}
void __fastcall Invoke()
{
this->f();
}
};
class TAnonymousThread
{
public:
template<typename _Callable, typename... _Args>
static TThread* StartAnonymousThread(_Callable&& __f, _Args&&... __args)
{
TThread *t =TThread::CreateAnonymousThread(new Threading::TAnonymousThreadTask(__f,__args...));
t->Start();
return t;
}
};
}