General Category > General Discussion about just::thread

which header can I find std::ref in?

(1/1)

Kenneth Carter:
I am exploring the Mersenne twister algorithym implementing it is a parallel algorithym. I need to pass some pointers into the thread and I was wondering which header contains std::ref ?

Kenneth

Anthony Williams:
std::ref is in <functional>, and not supplied by just::thread. With VC9 SP1, std::tr1::ref is included as part of the TR1 package, which has the same functionality. Full support of std::tr1::ref is not provided for just::thread beta v0.4; that will be in beta v0.5

Navigation

[0] Message Index

Go to full version