you can't initialize members with non default constructors like that in a header.
Make your member a pointer, and then initialized it in the implementation file with the recursive mode.
you can't initialize members with non default constructors like that in a header.
Make your member a pointer, and then initialized it in the implementation file with the recursive mode.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Qiieha (9th May 2011)
thank for your help...I solved the problem without using a pointer.
header file
Qt Code:
class Test{ private: QMutex mx; public: Test(); }To copy to clipboard, switch view to plain text mode
cpp file
Qt Code:
Test::Test() : { }To copy to clipboard, switch view to plain text mode
Bookmarks