Writing a wrapper around rational?

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Wed Dec 13 20:23:29 CET 2006


On Mon, Dec 11, 2006 at 07:10:30PM -0800, Susan Margulies wrote:
> Here is the precise line that causes the crash, in reduce rows
> 
> if (rr_iter == rr_map.end()) {
>             rr_q = (*rr_iter).second;

Do you really mean to use '==' and not '!='?

You are dereferencing the 'end()' iterator right now.

Andre'




More information about the gmp-discuss mailing list