Boost logo

Boost :

Subject: [boost] [gil][io_new] Problems with templates
From: Christian Henning (chhenning_at_[hidden])
Date: 2010-10-24 15:06:20


Hi there, I don't see the woods because of all the trees. Could
someone get the latest code from here:

http://code.google.com/p/gil-contributions/source/browse/#svn/trunk

and try to compile the following code:

#include <boost/gil/extension/io_new/tiff_all.hpp>

using namespace std;
using namespace boost;
using namespace gil;

int main()
{
    typedef mpl::vector< gray8_image_t
                       , gray16_image_t
                       , rgb8_image_t
                       , gil::detail::gray1_image_t
> my_img_types;

    any_image< my_img_types > runtime_image;

    read_image( "C:/gil_contributions/test_images/tiff/test.tif"
              , runtime_image
              , tiff_tag()
              );

    return 0;
}

Why do I have this static assertion in read.hpp[662]? I don't
understand why the two buffer types are different.

Any help is very welcome,
Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk