9 Dec
2017
9 Dec
'17
4:26 a.m.
AMDG On 12/08/2017 04:38 AM, Ram via Boost-users wrote:
<snip>
c:\Projects\pq_test.cpp(27): error C2662: 'void boost::heap::priority_queue
::push(myObject *const &)' : cannot convert 'this' pointer from 'const boost::heap::priority_queue ' to 'boost::heap::priority_queue &'1> Conversion loses qualifiers Using Visual Studio 2013 C++. I understand that I am doing something wrong with const correctness, but I am not able to figure out what is wrong. Any help is appreciated.
You're trying to push onto a const priority_queue. In Christ, Steven Watanabe