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:
authorTetsuo Kiso <tetsuo-s@is.naist.jp>2011-11-12 04:51:27 +0400
committerTetsuo Kiso <tetsuo-s@is.naist.jp>2011-11-12 04:51:27 +0400
commitdfb714296fcb6ee2bdde028a5c5bef430b9558aa (patch)
tree0ba8be0d16405633dd9208d8e232b6dc6d945e02 /mert/Point.h
parentce9a628ed0337d051ce7058dcace2fa53df6d884 (diff)
Add 'explicit' for constructors with one argument.
Diffstat (limited to 'mert/Point.h')
-rw-r--r--mert/Point.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/mert/Point.h b/mert/Point.h
index bf1643b36..4e06bfd26 100644
--- a/mert/Point.h
+++ b/mert/Point.h
@@ -13,7 +13,7 @@ class Optimizer;
* A class that handles the subset of the Feature weight on which
* we run the optimization.
*/
-class Point:public vector<parameter_t>
+class Point : public vector<parameter_t>
{
friend class Optimizer;
private:
@@ -61,12 +61,13 @@ public:
static bool OptimizeAll() {
return fixedweights.empty();
}
+
statscore_t score;
- Point():vector<parameter_t>(dim) {}
+
+ Point() : vector<parameter_t>(dim) {}
Point(const vector<parameter_t>& init,
- const vector<parameter_t>& min,
- const vector<parameter_t>& max
- );
+ const vector<parameter_t>& min,
+ const vector<parameter_t>& max);
void Randomize();
// Compute the feature function