Skip to content

Commit

Permalink
Aha! That's a weird behaviour difference between when constructors ar…
Browse files Browse the repository at this point in the history
…e called by visual studio vs gcc.

Seems the gcc behaviour is correct. When I init an iterator, CALL THE FUCKING CONSTRUCTOR.
The only reason VS seemed to be behaving correctly (not reallocating the cache) was because
it wasn't calling the constructor. Who knows why?
  • Loading branch information
Rosangela Canino-Koning committed Jul 7, 2010
1 parent ea37356 commit 9660f3d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Caper/MappingEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,14 @@ class MappingEngine

iterator End( string & aContigIdent )
{
// HOLY SHIT, THIS METHOD IS ALL WRONG. I'm getting a meaning collision between -1 as End value, and -1 as default starting.
// What an irritating bug.

cout << "~~MappingEngine - End(contig) - Initing a new one" << endl;
iterator lIt ( this, aContigIdent ); // does this get destroyed too soon? :/
cout << "~~MappingEngine - End(contig) - Ending it" << endl;
lIt.End();
cout << "~~MappingEngine - End(contig) - Done, returning it" << endl;
return lIt;
}

Expand Down

0 comments on commit 9660f3d

Please sign in to comment.