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:
authorKenneth Heafield <github@kheafield.com>2012-08-06 22:35:24 +0400
committerKenneth Heafield <github@kheafield.com>2012-08-06 22:35:24 +0400
commitcba50df899809ede5e2d85b63bfc461ed2bae83c (patch)
tree47a401379671bc113843ef133604a8e322de587e /util/file.hh
parentb52ed110b02dff440512ee241211f7f0238e82d1 (diff)
Maybe if I make TempMaker provide the file name, people will stop using tmpnam.
Diffstat (limited to 'util/file.hh')
-rw-r--r--util/file.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/file.hh b/util/file.hh
index 72c8ea768..cc986270c 100644
--- a/util/file.hh
+++ b/util/file.hh
@@ -94,9 +94,9 @@ class TempMaker {
public:
explicit TempMaker(const std::string &prefix);
- int Make() const;
+ int Make(std::string *out_name = NULL) const;
- std::FILE *MakeFile() const;
+ std::FILE *MakeFile(std::string *out_name = NULL) const;
private:
std::string base_;