Changes between Initial Version and Version 1 of Ticket #10128


Ignore:
Timestamp:
Jun 17, 2014, 4:14:31 PM (8 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10128

    • Property Owner changed from Anthony Williams to viboes
    • Property Status newassigned
  • Ticket #10128 – Description

    initial v1  
    33We have a compiler error when we connect unique_lock and one derived class from lockable_adapter and the object is const.
    44
     5
     6{{{
    57int func(const Class1& obj)
    68{
     
    911    return obj.get();
    1012}
     13}}}
     14
    1115 ->
     16
     17{{{
    1218error C2664: 'boost::unique_lock<Mutex>::unique_lock(boost::upgrade_lock<Mutex> &)' : no se puede convertir el parámetro 1 de 'const Class1' a 'boost::upgrade_lock<Mutex> &'
     19}}}
     20
    1321
    1422The solution for us is rewrite the sentence with one const_cast<Class1> ->