@@ -43,13 +43,13 @@ namespace trklet {
4343 const int offset = region_ * setup_->numLayers ();
4444 const StreamTrack& streamTrack = streamsTrack[region_];
4545 const int numTracks = accumulate (streamTrack.begin (), streamTrack.end (), 0 , [](int sum, const FrameTrack& f) {
46- return sum += (f.first .isNull () ? 0 : 1 );
46+ return sum + (f.first .isNull () ? 0 : 1 );
4747 });
4848 int numStubs (0 );
4949 for (int layer = 0 ; layer < setup_->numLayers (); layer++) {
5050 const StreamStub& streamStub = streamsStub[offset + layer];
5151 numStubs += accumulate (streamStub.begin (), streamStub.end (), 0 , [](int sum, const FrameStub& f) {
52- return sum += (f.first .isNull () ? 0 : 1 );
52+ return sum + (f.first .isNull () ? 0 : 1 );
5353 });
5454 }
5555 tracks_.reserve (numTracks);
@@ -230,7 +230,7 @@ namespace trklet {
230230 }
231231 // count total number of final states
232232 const int nStates =
233- accumulate (stream_.begin (), stream_.end (), 0 , [](int sum, State* state) { return sum += (state ? 1 : 0 ); });
233+ accumulate (stream_.begin (), stream_.end (), 0 , [](int sum, State* state) { return sum + (state ? 1 : 0 ); });
234234 // apply truncation
235235 if (setup_->enableTruncation () && (int )stream_.size () > setup_->numFramesHigh ())
236236 stream_.resize (setup_->numFramesHigh ());
0 commit comments