diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 03:58:23 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2011-11-12 03:58:23 +0400 |
commit | 68315d6407f55ff98b3b3bf89dc725d2ccad8019 (patch) | |
tree | 6d4e95512f522e857d39e8f796dcf4dbfee003d8 /mert/FeatureStats.cpp | |
parent | 4f6d022fe7fa6c8e3279de2221a24f11afd8f8ba (diff) |
Fix class, function, and implementation comments format.
Functions comments should be placed in their declarations.
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp index 21d97f61d..7eac95528 100644 --- a/mert/FeatureStats.cpp +++ b/mert/FeatureStats.cpp @@ -65,7 +65,7 @@ SparseVector& SparseVector::operator-=(const SparseVector& rhs) { } //Any elements in rhs, that have no value in *this - for (fvector_t::const_iterator i = rhs.fvector_.begin(); + for (fvector_t::const_iterator i = rhs.fvector_.begin(); i != rhs.fvector_.end(); ++i) { if (fvector_.find(i->first) == fvector_.end()) { fvector_[i->first] = -(i->second); @@ -211,8 +211,6 @@ FeatureStats& FeatureStats::operator=(const FeatureStats &stats) return *this; } - -/**write the whole object to a stream*/ ostream& operator<<(ostream& o, const FeatureStats& e) { // print regular features |