
-----Original Message----- From: Boost-users [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Marco Guazzone Sent: 24 January 2015 07:57 To: boost-users@lists.boost.org Subject: [Boost-users] [type_erasure] Problem with iterators
Hi,
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:
<big snip> 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 https://github.com/boostorg/type_erasure/blob/develop/test/test_construct_cr... and Steven Watanabe seems to unavailable by email :-(( So that is no help at all for you :-( Sorry. Paul --- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830