Boost Users :
Subject: Re: [Boost-users] [type_erasure] Problem with iterators
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2015-01-24 12:51:38
> -----Original Message-----
> From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Marco Guazzone
> Sent: 24 January 2015 07:57
> To: boost-users_at_[hidden]
> Subject: [Boost-users] [type_erasure] Problem with iterators
> I'm new to the Type Erasure library.
> I need to write a base class with type-erased forward iterators. To do so I've taken
> inspiration from the print_sequence.cpp example I've found in the Type Erasure
> source tree.
> At the end of the email there is the whole code of my tentative, called "erasure.cpp".
> Unfortunately, I've problems (presumably) with const iterators which cause the
> following compile error:
I've tried to compile your code using VS 12.0.30110.00 Update 1
but it won't even take the non-const iterator.
(It fails missing a type in constructible.hpp)
With this compiler version, I have used Steven's print sequence examples and some derived versions (all non- const values I think) previously
but I now find that none of the previously run example compile, failing like this
I:\modular-boost\boost/type_erasure/constructible.hpp(88): error C2061: syntax error : identifier 'type'
for reasons that I have yet to fathom.
Does some change now *require* variadics so I need a more recent compiler?
(I wouldn't dare look at the underlying code, (though it smells of a const iterator version not being defined?) -
that requires a brain the size of a planet ;-)
However this test passes (along with all the other tests), whatever that might mean
and Steven Watanabe seems to unavailable by email :-((
So that is no help at all for you :-( Sorry.
--- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
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