[GiNaC-list] Suggestion for the FAQ.

Martin Sandve Alnæs martinal at simula.no
Wed Oct 11 22:40:29 CEST 2006


On 10/11/06, Richard B. Kreckel <kreckel at ginac.de> wrote:
> Sheplyakov Alexei wrote:
>
> >Modify ex_to<T> to check if it is actually possible to convert
> >the argument to type T (and add ex_to_unsafe<T> for those who *really*
> >know what they are doing)?
> >
> >
>
> ex_to<T> is documented as being unsafe. However. that doesn't appear to
> be enough. I actually like Alexei's suggestion. The ca. 800 occurrences
> of ex_to<T> inside the library would have to be converted, though. What
> do others think?

Perhaps better to keep ex_to as it is and add f.ex. convert_ex_to<T>
as a new safe variant.

martin


More information about the GiNaC-list mailing list