11 Oct
2006
11 Oct
'06
10:40 p.m.
On 10/11/06, Richard B. Kreckel <kreckel@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