Menu

#601 ptlib 2.18 branch compile error

Stable_Branch
open
5
2021-11-15
2021-11-08
zbyslb
No

[CXX] src/ptlib/common/osutils.cxx
/src/ptlib/src/ptlib/common/osutils.cxx: In member function ‘virtual void PProcess::PrintOn(std::ostream&) const’:
/src/ptlib/src/ptlib/common/osutils.cxx:3102:10: error: no match for ‘operator=’ in ‘it = ((const PProcess*)this)->PProcess::m_profileLastThreadTimes.std::set<_Key, _Compare, _Alloc>::erase<pthread::times, std::less\<pthread::times="">, std::allocator\<pthread::times> >(it)’ (operand types are ‘std::set<pthread::times>::iterator {aka std::_Rb_tree_const_iterator<pthread::times>}’ and .void’)
/src/ptlib/src/ptlib/common/osutils.cxx:3102:10: note: candidate is:
In file included from /usr/include/c++/4.8.2/map:60:0,
from /src/ptlib/include/ptlib/object.h:59,
from /src/ptlib/include/ptlib.h:44,
from /src/ptlib/src/ptlib/common/osutils.cxx:30:
/usr/include/c++/4.8.2/bits/stl_tree.h:228:12: note: std::_Rb_tree_const_iterator<pthread::times>& std::_Rb_tree_const_iterator<pthread::times>::operator=(const std::_Rb_tree_const_iterator<pthread::times>&)
/usr/include/c++/4.8.2/bits/stl_tree.h:228:12: note: no known conversion for argument 1 from ‘void’ to ‘const std::_Rb_tree_const_iterator<pthread::times>&’
make[2]: *** [/src/ptlib/lib_linux_x86_64/obj/osutils.o] Error 1
make[1]: *** [optshared] Error 2
make[1]: Leaving directory `/src/ptlib'
make: *** [build_top_level] Error 2</pthread::times></pthread::times></pthread::times></pthread::times></pthread::times></pthread::times></pthread::times></pthread::times,>

Discussion

  • zbyslb

    zbyslb - 2021-11-14

    zhe source file, update to this time

     
  • Robert Jongbloed

    I do not have this problem with either ubunto or Mac. I may have fixed it at some point.

     

Log in to post a comment.