Commit 681f2578 authored by Yann Jacquelet's avatar Yann Jacquelet
Browse files

Fix the way to convert unsigned to float.

	* mln/convert/from_to.hxx: New conversion utilities.
	* mln/convert/impl/from_unsigned_to_value.hh: New conversion utilities.
parent 1307e9db
......@@ -534,6 +534,13 @@
* mln/value/rgb.hh: Make use of the new routine to print a
correct type names in dump format.
 
2010-06-21 Yann Jacquelet <jacquelet@lrde.epita.fr>
Fix the way to convert unsigned to float.
* mln/convert/from_to.hxx: New conversion utilities.
* mln/convert/impl/from_unsigned_to_value.hh: New conversion utilities.
2009-12-02 Yann Jacquelet <jacquelet@lrde.epita.fr>
 
Fix the outside template use case for the convolve macros.
......@@ -292,6 +292,10 @@ namespace mln
void
from_to_(const Value<F>& from, Value<T>& to);
// unsigned -> float
void
from_to_(const unsigned& from, float& to);
// double-> Value
template <typename V>
void
......
......@@ -118,6 +118,16 @@ namespace mln
internal::from_unsigned_to_value_dispatch(from, to);
}
// Facades.
// unsigned-> float
void
from_to_(const unsigned& from, float& to)
{
to = from;
}
} // end of namespace mln::convert::over_load
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment