#253: convert::from_to is not flexible for the user
---------------------+------------------------------------------------------
Reporter: lazzara | Owner: lazzara
Type: defect | Status: assigned
Priority: major | Milestone:
Component: Milena | Version: 2.0
Keywords: |
---------------------+------------------------------------------------------
Changes (by lazzara):
* status: new => assigned
Comment:
Edwin noticed that g++ looks up to overloads in two passes.
1/ Try to find the closest overload among the previously declared
functions.
2/ Try to find the closest overload among all the declared functions in
the namespaces of the first argument (
http://en.wikipedia.org/wiki
/Argument-dependent_name_lookup).
By using this second mode, we could avoid all the forward declarations in
from_to.hxx and make the conversion system extendable just by defining the
from_to_() overloads in the same namespace as their first argument.
--
Ticket URL: <https://trac.lrde.epita.fr/olena/ticket/253#comment:1>
Olena <http://olena.lrde.epita.fr>
Olena, a software platform dedicated to image processing.