class Test { int hoge() { return 0; } } auto raw = new shared(Test); Test local1 = assumeThreadLocal(raw); Test local2 = assumeThreadLocal(new shared(Test));
See Implementation