Boost logo

Boost Users :

Subject: Re: [Boost-users] [gil] bad_cast exception
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-01-27 15:25:25


Hi Oliver,

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.

Regards,
Christian


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