Changes between Initial Version and Version 1 of Ticket #10128
- Timestamp:
- Jun 17, 2014, 4:14:31 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10128
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #10128 – Description
initial v1 3 3 We have a compiler error when we connect unique_lock and one derived class from lockable_adapter and the object is const. 4 4 5 6 {{{ 5 7 int func(const Class1& obj) 6 8 { … … 9 11 return obj.get(); 10 12 } 13 }}} 14 11 15 -> 16 17 {{{ 12 18 error 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 13 21 14 22 The solution for us is rewrite the sentence with one const_cast<Class1> ->