Commit 04e7d802 authored by Roland Levillain's avatar Roland Levillain
Browse files

Help g++ 3.3 compile Milena code.

	* apps/graph-morpho/convert.hh
	(convert::to_image2d(const mln::bin_1complex_image2d&)):
	Break up an object's construction to help g++ 3.3 understand it.
parent c260d597
2010-04-27 Roland Levillain <roland@lrde.epita.fr>
Help g++ 3.3 compile Milena code.
* apps/graph-morpho/convert.hh
(convert::to_image2d(const mln::bin_1complex_image2d&)):
Break up an object's construction to help g++ 3.3 understand it.
2010-04-23 Roland Levillain <roland@lrde.epita.fr>
 
Prevent g++ 4.2 from issuing bad code for graph-morpho/samples_image2d.
......@@ -64,10 +64,9 @@ namespace convert
}
mln::box2d support = bbox;
image2d<bool> output(box2d(point2d(support.pmin().row() * 2,
support.pmin().col() * 2),
point2d(support.pmax().row() * 2,
support.pmax().col() * 2)));
point2d box_p_min(support.pmin().row() * 2, support.pmin().col() * 2);
point2d box_p_max(support.pmax().row() * 2, support.pmax().col() * 2);
image2d<bool> output(box2d(box_p_min, box_p_max));
data::fill(output, false);
// Iterate on vertices.
......
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