
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-11-06 Guillaume Duhamel <guillaume.duhamel@lrde.epita.fr> Desactivate set_of::operator<<. * mln/core/internal/set_of.hh: (operator<<) Desactivate due to an ambiguity with Point_set::operator<<. QUESTION for theo : Can I remove it? --- set_of.hh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) Index: trunk/milena/mln/core/internal/set_of.hh =================================================================== --- trunk/milena/mln/core/internal/set_of.hh (revision 1442) +++ trunk/milena/mln/core/internal/set_of.hh (revision 1443) @@ -181,8 +181,9 @@ * * \relates mln::internal::set_of_ */ - template <typename E> - std::ostream& operator<<(std::ostream& ostr, const set_of_<E>& s); + // FIXME : ambiguous with point_set operator << + // template <typename E> + // std::ostream& operator<<(std::ostream& ostr, const set_of_<E>& s); @@ -280,17 +281,18 @@ needs_update_ = false; } - template <typename E> - std::ostream& operator<<(std::ostream& ostr, - const set_of_<E>& s) - { - ostr << '['; - const unsigned n = s.nelements(); - for (unsigned i = 0; i < n; ++i) - ostr << s.element(i) - << (i == s.nelements() - 1 ? ']' : ','); - return ostr; - } + // FIXME : ambiguous with point_set operator << + // template <typename E> + // std::ostream& operator<<(std::ostream& ostr, + // const set_of_<E>& s) + // { + // ostr << '['; + // const unsigned n = s.nelements(); + // for (unsigned i = 0; i < n; ++i) + // ostr << s.element(i) + // << (i == s.nelements() - 1 ? ']' : ','); + // return ostr; + // } # endif // ! MLN_INCLUDE_ONLY