Boost C++ Libraries: Ticket #6181: Function for overlaoding "=" operator in boost/interprocess/sync/file_lock.hpp should be made public ( It is private currently ) https://svn.boost.org/trac10/ticket/6181 <p> I am using boost1.38.0 with below combination: </p> <ul><li>OS : HP-UX 11iv3 </li><li>Compiler : aCC A.0.17 ( It is said to be compatible with boost1.38.0) </li></ul><p> I am using include boost/interprocess/sync/file_lock.hpp somewhere in my source that use "=" operator for assigning one file_lock object to another. </p> <blockquote> <p> ScopedShmAttacher::<a class="missing wiki">ScopedShmAttacher</a>(): </p> <blockquote> <p> shmPtr(NULL), lockStatus(-1), lockFd(0) </p> </blockquote> </blockquote> <p> { </p> <blockquote> <p> std::string mtxName = lockFileDir + lockFileName; createLockFile(mtxName); this-&gt;flock = boost::interprocess::file_lock(mtxName.c_str()); this-&gt;lock(); </p> </blockquote> <p> } </p> <p> The above piece of code fails at compilation because "=" operator which is overloaded in file_lock class is declared private and also not defined. </p> <p> But when I compile same code with boost1.45.0, My code compiles. </p> <p> It would be better if same functionality as of boost1.45.0 can be provided in boost1.38.0. I am not sure though it is feasible. I am trying for some hack as of now. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6181 Trac 1.4.3 viboes Mon, 12 Dec 2011 22:37:59 GMT component changed https://svn.boost.org/trac10/ticket/6181#comment:1 https://svn.boost.org/trac10/ticket/6181#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">interprocess</span> </li> </ul> Ticket Ion Gaztañaga Fri, 23 Dec 2011 12:37:08 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6181#comment:2 https://svn.boost.org/trac10/ticket/6181#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> File_lock is not copyable, but movable. Move semantics were added in recent versions so there are no plans to backport features to Boost 1.38. </p> Ticket