Subject: [Boost-bugs] [Boost C++ Libraries] #6181: Function for overlaoding "=" operator in boost/interprocess/sync/file_lock.hpp should be made public ( It is private currently )
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-28 14:30:36
#6181: Function for overlaoding "=" operator in
boost/interprocess/sync/file_lock.hpp should be made public ( It is private
currently )
-----------------------------------------+----------------------------------
Reporter: pravar.jawalkar@⦠| Owner: igaztanaga
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.38.0 | Severity: Problem
Keywords: |
-----------------------------------------+----------------------------------
I am using boost1.38.0 with below combination:
- OS : HP-UX 11iv3
- Compiler : aCC A.0.17 ( It is said to be compatible with boost1.38.0)
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.
ScopedShmAttacher::ScopedShmAttacher():
shmPtr(NULL),
lockStatus(-1),
lockFd(0)
{
std::string mtxName = lockFileDir + lockFileName;
createLockFile(mtxName);
this->flock = boost::interprocess::file_lock(mtxName.c_str());
this->lock();
}
The above piece of code fails at compilation because "=" operator which is
overloaded in file_lock class is declared private and also not defined.
But when I compile same code with boost1.45.0, My code compiles.
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6181> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC