Hi,
Is there an objection to have a vector with objects extended from ofThread ?
or more accurately, a vector with objects from a class containing an object extended from ofThread ?
If there’s not, why do I have those errors…
'Poco::FastMutex::FastMutex(const Poco::FastMutex&)' is private|
This happens from that line
m_rays.push_back(m_rayToAdd);
m_rayToAdd is an instance from ofdRay (class containing an object threaded)
vector<ofdRay> m_rays;
ofdRay m_rayToAdd;
I hope I’m understandable, and somebody can help.
details of all errors below
Cheers
Sébastien
..\..\..\libs\openFrameworks\utils\ofThread.h|12|instantiated from 'void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = ofdRay]'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_vector.h|737|instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]'|
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRays.cpp|79|instantiated from here|
..\..\..\libs\poco\include\Poco\Mutex.h|168|error: 'Poco::FastMutex::FastMutex(const Poco::FastMutex&)' is private|
..\..\..\libs\openFrameworks\utils\ofThread.h|12|error: within this context|
..\..\..\addons\_myAddons\ofdAnimation\ofdAnimation.h|22|note: synthesized method 'ofThread::ofThread(const ofThread&)' first required here |
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRay.h|7|note: synthesized method 'ofdAnimation::ofdAnimation(const ofdAnimation&)' first required here |
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\ext\new_allocator.h||In member function 'void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = ofdRay]':|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_vector.h|737|instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]'|
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRays.cpp|79|instantiated from here|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\ext\new_allocator.h|105|note: synthesized method 'ofdRay::ofdRay(const ofdRay&)' first required here |
..\..\..\libs\poco\include\Poco\Mutex.h||In member function 'ofThread& ofThread::operator=(const ofThread&)':|
..\..\..\libs\openFrameworks\utils\ofThread.h|12|instantiated from 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]'|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_vector.h|741|instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]'|
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRays.cpp|79|instantiated from here|
..\..\..\libs\poco\include\Poco\Mutex.h|169|error: 'Poco::FastMutex& Poco::FastMutex::operator=(const Poco::FastMutex&)' is private|
..\..\..\libs\openFrameworks\utils\ofThread.h|12|error: within this context|
..\..\..\addons\_myAddons\ofdAnimation\ofdAnimation.h||In member function 'ofdAnimation& ofdAnimation::operator=(const ofdAnimation&)':|
..\..\..\addons\_myAddons\ofdAnimation\ofdAnimation.h|22|note: synthesized method 'ofThread& ofThread::operator=(const ofThread&)' first required here |
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRay.h||In member function 'ofdRay& ofdRay::operator=(const ofdRay&)':|
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRay.h|7|note: synthesized method 'ofdAnimation& ofdAnimation::operator=(const ofdAnimation&)' first required here |
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\vector.tcc||In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]':|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\stl_vector.h|741|instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = ofdRay, _Alloc = std::allocator<ofdRay>]'|
D:\PROJETS\_OF\007\addons\_myAddons\ofdRays\ofdRays.cpp|79|instantiated from here|
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\c++\bits\vector.tcc|312|note: synthesized method 'ofdRay& ofdRay::operator=(const ofdRay&)' first required here |
||=== Build finished: 4 errors, 1 warnings ===|