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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : 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: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] 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 | [EMAIL PROTECTED] | 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