mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Prohibit the client from calling some constructors without arguments.
The reason is to avoid the misuse of constructors that should be called with arguments.
This commit is contained in:
parent
20afe4babb
commit
0c7a38d9d2
@ -28,6 +28,9 @@ protected:
|
||||
name2idx arrayname2idx_; // map from name to index of array
|
||||
|
||||
private:
|
||||
// Do not allow the user to instanciate without arguments.
|
||||
ScoreData() {}
|
||||
|
||||
Scorer* theScorer;
|
||||
std::string score_type;
|
||||
size_t number_of_scores;
|
||||
|
@ -113,6 +113,9 @@ class OptimizationTask : public Moses::Task
|
||||
}
|
||||
|
||||
private:
|
||||
// Do not allow the user to instanciate without arguments.
|
||||
OptimizationTask() {}
|
||||
|
||||
Optimizer* m_optimizer;
|
||||
Point m_point;
|
||||
statscore_t m_score;
|
||||
|
Loading…
Reference in New Issue
Block a user