[interval] implicit versus explicit conversions

Hi, The current interface of boost::interval defines the following implicit conversions interval(T const &v); template(* class T1 *) interval(T1 const &v); template(* class T1, class Policies1 *) interval(interval(* T1, Policies1 *) const &r); I was wondering if some/all of these shouldn't be declared explicit. Any thoughts? Best, Vicente P.S. Please replace (* and *) by angle brackets. -- View this message in context: http://boost.2283326.n4.nabble.com/interval-implicit-versus-explicit-convers... Sent from the Boost - Dev mailing list archive at Nabble.com.

Hi Vicente, 2011/6/17 Vicente Botet <vicente.botet@wanadoo.fr>:
Hi,
The current interface of boost::interval defines the following implicit conversions
interval(T const &v); template<class T1> interval(T1 const &v); template<class T1, class Policies1> interval(interval<T1, Policies1>, const &r);
I was wondering if some/all of these shouldn't be declared explicit.
Any thoughts?
I think you are right. They should be explicit. Unfortunately the authors of Boost.Interval seem not to be active anymore. As for your "angle bracket problem". Can't you switch off html-mode in your mail/news-reader? Or change the mail/new program all together? Cheers, Joachim -- Interval Container Library [Boost.Icl] http://www.joachim-faulhaber.de
participants (2)
-
Joachim Faulhaber
-
Vicente Botet