Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'util/stream/io.hh')
-rw-r--r--util/stream/io.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/stream/io.hh b/util/stream/io.hh
index c3b53bbfe..4605a8a79 100644
--- a/util/stream/io.hh
+++ b/util/stream/io.hh
@@ -70,8 +70,8 @@ class FileBuffer {
return PWriteAndRecycle(file_.get());
}
- PRead Source() const {
- return PRead(file_.get());
+ PRead Source(bool discard = false) {
+ return PRead(discard ? file_.release() : file_.get(), discard);
}
uint64_t Size() const {