diff -Naur boost_1_51_0/boost/interprocess/smart_ptr/unique_ptr.hpp boost_1_51_0_patched/boost/interprocess/smart_ptr/unique_ptr.hpp
old
|
new
|
|
281 | 281 | deleter_const_reference get_deleter() const |
282 | 282 | { return ptr_.second(); } |
283 | 283 | |
284 | | //!Returns: An unspecified value that, when used in boolean |
285 | | //!contexts, is equivalent to get() != 0. |
| 284 | //!Returns: A boolean value that is equivalent to get() != 0. |
286 | 285 | //! |
287 | 286 | //!Throws: nothing. |
288 | | operator int nat::*() const |
289 | | { return ptr_.first() ? &nat::for_bool_ : 0; } |
| 287 | operator bool () const |
| 288 | { return ptr_.first(); } |
290 | 289 | |
291 | 290 | //!Postcondition: get() == 0. |
292 | 291 | //! |