Subj : Re: Returning structures from template classes To : borland.public.cpp.borlandcpp From : maeder Date : Sun Oct 02 2005 11:05 pm "DJV" writes: > I added a "success" unsigned integer variable, then modified the > contructor code and the code to set one matrix equal to another to > include it. I can now send an indication of success or failure with > the matrix that is being returned. First of all, a variable indicating a value of true or false should be of a boolean type. I don't think that the compiler you are using supports bool yet, but you should use typedef to declare a name that better conveys the semantics of such variables. Second, if this means that you added a success variable to the matrix type (or template), note that this is a bad idea. Matrices don't succeed or fail; inversion does. .