Je dois me tromper mais j'ai l'impression qu'il a du mal à retrouver
le type concret de l'image dans l'exemple ci-dessous. Est-ce normal
docteur ?
$ g++ --version
g++ (GCC) 3.3.2 (Debian)
$ cat olena-bug.cc
#include <iostream>
#include <oln/basics2d.hh>
class foo
{
};
int main()
{
oln::image2d< foo > i(60, 60);
std::cout << i.hold(0, 0) << std::endl;
return 0;
}
$ g++ -I/home/sylvain/works/lrde/olena-0.9/integre \
-I/home/sylvain/works/lrde/olena-0.9/metalic \
-I/home/sylvain/works/lrde/olena-0.9/olena olena-bug.cc
=> OK
$ g++ -I/home/sylvain/works/lrde/olena-0.10/integre \
-I/home/sylvain/works/lrde/olena-0.10/metalic \
-I/home/sylvain/works/lrde/olena-0.10/olena olena-bug.cc
olena-bug.cc: In function `int main()':
olena-bug.cc:34: error: no matching function for call to
`oln::image2d<foo,
mlc::final>::hold(int, int)'
/home/sylvain/works/lrde/olena-0.10/olena/oln/core/abstract/image.hh:103:
error: candidates
are: bool oln::abstract::image<Exact>::hold(const
oln::abstract::point<typename oln::image_traits<Ima>::point_type>&)
const
[with Exact = oln::image2d<foo, mlc::final>]
--
sylvain