|
Boost : |
From: Minmin Gong (gongminmin_at_[hidden])
Date: 2007-05-15 07:19:57
Arkadiy Vertleyb wrote:
> "Minmin Gong" <gongminmin_at_[hidden]> wrote
>
>> The compile output is:
>> using typeof emulation
>> d:\boost\boost\typeof\encode_decode.hpp(47) : error C2504:
>>
> '`anonymous-namespace'::boost_typeof::encode_type_impl<V,Type_Not_Registered
> _With_Typeof_System>'
>> : base class undefined
>> with
>> [
>> V=boost::type_of::vector0<>,
>> Type_Not_Registered_With_Typeof_System=std::vector<int>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> [...]
>> Do I need to register types such as std::vector, boost::array, etc.
> myself?
>
> Eric was right -- this is a problem with the registration. This will go
> away once the "native" mode for vc8 is introduced (currently in CVS).
>
> For now you can register types. Your immediate issue is with vector<int>,
> and you can cure it like this:
>
> #include <boost/typeof/std/vector.hpp>
>
> instead of
>
> #include <vector>
>
> If you need boost::array, you will have to register it youself.
>
> Regards,
> Arkadiy
>
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>
Thanks a loooot!!!!
BTW: will the typeof in CVS be merged into next release?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk