Boost C++ Libraries: Ticket #10848: try_acquire_file_lock/ try_acquire_file_lock_sharable uses = instead of == in comparison https://svn.boost.org/trac10/ticket/10848 <p> The last line for both try_acquire_file_lock and try_acquire_file_lock_sharable is: </p> <blockquote> <p> return (acquired = true); </p> </blockquote> <p> It is unclear if the use of assignment ('=') instead of comparison ('==') here is intentional. My static analysis checker picked it up as a bug. If this is intentional, it should be documented with comments inline. Or, better yet, split into 2 lines of code so static analysis doesn't flag it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10848 Trac 1.4.3