Boost logo

Boost Users :

Subject: Re: [Boost-users] [typeof] fails with Intel Compiler v11.0 on windows
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-09 19:32:54


AMDG

Mikko Vainio wrote:
> Could someone out there verify that the following piece of code fails
> with Intel Compiler v11.0.066 on Windows (Microsoft SDK v6.1):
>
> <snip>
>
> The compiler output is:
>
> ---------------------
> using typeof emulation
> <snip>
>
> Is this a bug? Should a header containing the implementation of
> encode_type_impl be included prior to encode_decode.hpp? Any help
> appreciated.

This is one of the limitations of emulation mode. There is no
portable way for the library to generically register
std::vector<T>::iterator.

Adding the following lines at global scope makes the code compile

#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
BOOST_TYPEOF_REGISTER_TYPE(vector<int>::iterator)

In Christ,
Steven Watanabe


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