#253: convert::from_to is not flexible for the user
---------------------+------------------------------------------------------
Reporter: lazzara | Owner: lazzara
Type: defect | Status: new
Priority: major | Milestone:
Component: Milena | Version: 2.0
Keywords: |
---------------------+------------------------------------------------------
convert::from_to allows the user to convert values to another value type.
Current mechanism does not allow the user to provide its own conversion
functions.
To add a new conversion function, an overload of from_to_() must be
declared in the namespace mln::convert::over_load.
A forward declaration must be added to from_to.hxx in order to make it
taken into account by g++ while resolving the overloaded functions. This
way, we ensure the fact that g++ is aware of this definition at the very
beginning.
This method is intrusive and definitely error prone since the forward
declarations may not be maintained correctly.
--
Ticket URL: <https://trac.lrde.epita.fr/olena/ticket/253>
Olena <http://olena.lrde.epita.fr>
Olena, a software platform dedicated to image processing.