Skip to content

Commit

Permalink
use boost::placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyle committed Dec 8, 2024
1 parent 6d8cb64 commit ba18e44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ReaderFactory.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ Reader * ReaderFactory::open(char const * path) throw() {
reader = new TranscodeFileReader(fileIndex, fileFd,
transcodeElement.pipeline,
doneGuarantee,
boost::bind(&ReaderFactory::readAheadIsDone, this, _1));
boost::bind(&ReaderFactory::readAheadIsDone, this, boost::placeholders::_1));
++*reader;
++readAheadCount;
} else {
// only the caller is responsible for it
reader = new TranscodeFileReader(fileIndex, fileFd,
transcodeElement.pipeline,
doneGuarantee,
boost::bind(&ReaderFactory::nonReadAheadIsDone, this, _1));
boost::bind(&ReaderFactory::nonReadAheadIsDone, this, boost::placeholders::_1));
}
}
}
Expand Down Expand Up @@ -253,7 +253,7 @@ int ReaderFactory::stat(char const * path, struct stat * st) throw() {
reader = new TranscodeFileReader(fileIndex, fileFd,
transcodeElement.pipeline,
doneGuarantee,
boost::bind(&ReaderFactory::readAheadIsDone, this, _1));
boost::bind(&ReaderFactory::readAheadIsDone, this, boost::placeholders::_1));
map.insert(Map::value_type(fileIndex, reader));

// readAheadRelease is responsible for it ...
Expand Down Expand Up @@ -324,7 +324,7 @@ void ReaderFactory::readAhead(char const * path) throw() {
Reader * reader = new TranscodeFileReader(fileIndex, fileFd,
transcodeElement.pipeline,
doneGuarantee,
boost::bind(&ReaderFactory::readAheadIsDone, this, _1));
boost::bind(&ReaderFactory::readAheadIsDone, this, boost::placeholders::_1));
map.insert(Map::value_type(fileIndex, reader));

// readAheadRelease is responsible for it
Expand Down
2 changes: 1 addition & 1 deletion TranscodeFileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <gst/gst.h>
#include <glib.h>

#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>

Expand Down

0 comments on commit ba18e44

Please sign in to comment.