On 20-Oct-99 Lars Gullik Bjønnes wrote:
> Juergen Vigna <[EMAIL PROTECTED]> writes:
>
>| Just to be curious, someone does compile lyx-devel with STL so that
>| lyxstring is not used? Could that person try to insert a lable in the
>| code from the menu Insert->Label and see what happens?
>
> You mean if it should crash or not :-)
>
> The standard uses this wording: "p shall not be a null pointer."
>
> So a string lib does not crash when a null is passed it is not
> standard conforming. We could of course write our code to be more
> "helpful", but then we would have a problem with standard compilant
> strings.
So the fix was not that wrong :), why not have the Assert only in
development versions?
Greets Jürgen
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED]
Gerbergasse 60 Tel: +39-0471-450260
I-39100 Bozen Fax: +39-0471-970042
ITALY Web: http://www.sad.it/~jug
For fools rush in where angels fear to tread.
-- Alexander Pope
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._