Boost logo

Boost :

From: Lubomir Bourdev (lbourdev_at_[hidden])
Date: 2007-02-08 16:41:46


Andreas Pokorny wrote:
>> GCC-4.1.1 gives me the attached error message while compiling
dynamic_image
>> <...skipped...>

I looked into it and found a workaround. The next version of GIL will
compile on gcc-4.1.1.

If you need a fix in the meantime, the fix is use MPL placeholder
expressions.
Search for "struct apply" and replace code like this:

template <typename ImageViewTypes>
struct get_const_views_from_views {
private:
    struct get_const_t { template <typename T> struct apply { typedef
typename T::const_t type; }; };
public:
    typedef typename boost::mpl::transform<ImageViewTypes,
get_const_t>::type type;
};

With code like this:

template <typename ImageViewTypes>
struct get_const_views_from_views {
private:
    template <typename T> struct get_const_t { typedef typename
T::const_t type; };
public:
    typedef typename boost::mpl::transform<ImageViewTypes,
get_const_t<boost::mpl::_1> >::type type;
};

Lubomir


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