From ba18e442781e8d1d732f31fbc6e4f4a0b5cc4fe3 Mon Sep 17 00:00:00 2001 From: Ross Tyler Date: Sun, 8 Dec 2024 12:59:31 -0800 Subject: [PATCH] use boost::placeholders --- ReaderFactory.cpp | 8 ++++---- TranscodeFileReader.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 ReaderFactory.cpp diff --git a/ReaderFactory.cpp b/ReaderFactory.cpp old mode 100644 new mode 100755 index 51df2ad..164023f --- a/ReaderFactory.cpp +++ b/ReaderFactory.cpp @@ -146,7 +146,7 @@ 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 { @@ -154,7 +154,7 @@ Reader * ReaderFactory::open(char const * path) throw() { reader = new TranscodeFileReader(fileIndex, fileFd, transcodeElement.pipeline, doneGuarantee, - boost::bind(&ReaderFactory::nonReadAheadIsDone, this, _1)); + boost::bind(&ReaderFactory::nonReadAheadIsDone, this, boost::placeholders::_1)); } } } @@ -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 ... @@ -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 diff --git a/TranscodeFileReader.cpp b/TranscodeFileReader.cpp index e5333e9..e847f42 100644 --- a/TranscodeFileReader.cpp +++ b/TranscodeFileReader.cpp @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include