mem_fun -> mem_fn.

mem_fun is deprecated in C++11. Also it does everything mem_fun can do, but more conveniently.
This commit is contained in:
Lioncash
2013-01-23 23:29:50 -05:00
parent cff8fe8f77
commit b7d32b0a3d
8 changed files with 11 additions and 9 deletions

View File

@ -63,7 +63,7 @@ bool AOSound::Start()
{
memset(realtimeBuffer, 0, sizeof(realtimeBuffer));
thread = std::thread(std::mem_fun(&AOSound::SoundLoop), this);
thread = std::thread(std::mem_fn(&AOSound::SoundLoop), this);
return true;
}