|
Boost Users : |
Subject: Re: [Boost-users] [gil] bad_cast exception
From: Olivier Tournaire (olitour_at_[hidden])
Date: 2009-01-27 15:31:40
2009/1/27 Christian Henning <chhenning_at_[hidden]>
> Hi Oliver,
Hi Christian,
>
> I don't get it to compile even when you put the nth_channel_view call
> inside jpeg_write_view for a simple reason. nth_channel_view needs the
> reference type of your any_image. But that's not possible since no one
> knows what image type the any_image actually is. You can cast your
> any_image to a specific image type using gil's variant::_dynamic_cast
> member. Then you can use nth_channel_view.
>
> Are you sure your code compiles? Let me know if you keep having troubles.
Yes, my code compiles fine with boost 1.36. In attachement, maybe you could
try.
Regards,
Olivier
>
>
> Regards,
> Christian
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Olivier Tournaire MATIS - Institut Géographique National 73, Ave de Paris 94165 St Mandé cedex, France tel: (+33) 1 43 98 80 00 - 71 25 fax: (+33) 1 43 98 85 81
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net