Something weird with threads.
Trass3r
un at known.com
Sun Aug 7 10:54:16 PDT 2011
> - Error: template std.concurrency.spawn(T...) cannot deduce
> template function from argument types !()(void delegate())
As the message already tells a class method yields a delegate and not a
function.
Check if that method could be made static.
But if you really need to do it this way, you may create a static wrapper
function that calls the method on a particular class instance. You should
be able to use a function literal as well.
More information about the Digitalmars-d-learn
mailing list