0 Members and 1 Guest are viewing this topic.
class TextureResourceManager{void LoadFiles(); sf::Thread imgThread;};TextureResourceManager::TextureResourceManager():imgThread(&TextureResourceManager::LoadFiles){}
||=== Agame, Debug ===|/usr/local/include/SFML/System/Thread.inl||In member function ‘void sf::priv::ThreadFunctor<T>::Run() [with T = void (TextureResourceManager::*)()]’:|/home/richy/codeblocks/Agame/src/TextureResourceManager.cpp:73|1|instantiated from here|/usr/local/include/SFML/System/Thread.inl|39|error: must use ‘.*’ or ‘->*’ to call pointer-to-member function in ‘((sf::priv::ThreadFunctor<void (TextureResourceManager::*)()>*)this)->sf::priv::ThreadFunctor<void (TextureResourceManager::*)()>::myFunctor (...)’, e.g. ‘(... ->* ((sf::priv::ThreadFunctor<void (TextureResourceManager::*)()>*)this)->sf::priv::ThreadFunctor<void (TextureResourceManager::*)()>::myFunctor) (...)’|||=== Build finished: 1 errors, 0 warnings ===|
You broke Laurent. Good job