Boost logo

Boost :

From: Jan Gaspar (jga_at_[hidden])
Date: 2003-04-26 02:26:52


I developed the cyclic buffer under MSVC 6.0 and g++ (I don't remember the
version). I tried to port it to MSVC 7, but I had some problems. Right now it has
no sense to put much effort to porting because I'm working on a new version with
"the iterator invalidation problem" fixed and in this version some of the "ifdefs"
will be removed.

Jan

"Paul A. Bristow" wrote:

> Thanks for this, which I have just got round to trying out.Sadly, MSVC 7.0 now
> gags on it as below. Is there something I need to #define? (I assume that the
> previous config.h is replaced by the boost config).
>
> Is the warning C4253 a worry? Is remains at warning level 3 (and I like things
> to be warning free at level 4 if possible).
>
> Thanks
>
> Paul
>
> Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
> +44 1539 561830 Mobile +44 7714 33 02 04
> Mobile mailto:pabristow_at_[hidden]
> mailto:pbristow_at_[hidden]
> :
>
> test_cyclic_buffer.cpp
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(324) : warning C4253:
> 'boost::AssignableConcept<TT>::constraints' : forming a pointer-to-member
> requires explicit use of the address-of operator ('&') and a qualified name
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(831) : see reference to class
> template instantiation 'boost::cyclic_buffer<T,Alloc>' being compiled
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(388) : error C2977:
> 'std::reverse_iterator' : too many template arguments
> C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(723)
> : see declaration of 'std::reverse_iterator'
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(391) : error C2977:
> 'std::reverse_iterator' : too many template arguments
> C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(723)
> : see declaration of 'std::reverse_iterator'
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(324) : warning C4253:
> 'boost::AssignableConcept<TT>::constraints' : forming a pointer-to-member
> requires explicit use of the address-of operator ('&') and a qualified name
> with
> [
> TT=int
> ]
> test_cyclic_buffer.cpp(45) : see reference to class template
> instantiation 'boost::cyclic_buffer<T,Alloc>' being compiled
> with
> [
> T=int,
> Alloc=std::vector<int,std::allocator<int>>::allocator_type
> ]
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(388) : error C2977:
> 'std::reverse_iterator' : too many template arguments
> C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(723)
> : see declaration of 'std::reverse_iterator'
> j:\Cpp\cyclic_buffer\cyclic_buffer.hpp(391) : error C2977:
> 'std::reverse_iterator' : too many template arguments
> C:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xutility(723)
> : see declaration of 'std::reverse_iterator'
>
> | -----Original Message-----
> | From: boost-bounces_at_[hidden]
> | [mailto:boost-bounces_at_[hidden]]On Behalf Of Jan Gaspar
> | Sent: Thursday, April 10, 2003 4:07 PM
> | To: Boost mailing list
> | Subject: Re: [boost] Statistics code example -
> | usingcycliciterator/buffer/array
> |
> |
> | Hi all!
> |
> | I have refactored my implelentation of the cyclic buffer. Its
> | underlaying container is now vector
> | (previosly it was deque). There is still one problem - iterator
> | invalidation. If you add or remove an
> | element from the end of the buffer, the iterators becomes invalidated.
> |
> | Jan
> |
> | --
> | Jan Gaspar | jga_at_[hidden]
> | Whitestein Technologies | www.whitestein.com
> | Panenska 28 | SK-81103 Bratislava | Slovak Republic
> | Tel +421(2)5930-0721 | Fax +421(2)5443-5512
> |
> |
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

--
Jan Gaspar | jga_at_[hidden]
Whitestein Technologies | www.whitestein.com
Panenska 28 | SK-81103 Bratislava | Slovak Republic
Tel +421(2)5930-0721 | Fax +421(2)5443-5512

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