|
Boost : |
From: Nicola Musatti (Nicola.Musatti_at_[hidden])
Date: 2006-04-11 15:16:10
Thorsten Ottosen wrote:
[...]
>>******Index: iterator_range.hpp
>>===================================================================
>>RCS file: /cvsroot/boost/boost/boost/range/iterator_range.hpp,v
>>retrieving revision 1.41
>>diff -d -u -r1.41 iterator_range.hpp
>>--- iterator_range.hpp 20 Feb 2006 21:15:02 -0000 1.41
>>+++ iterator_range.hpp 7 Apr 2006 07:55:57 -0000
>>@@ -262,7 +262,7 @@
>> if( singular )
>> return 0;
>>
>>- return std::distance( m_Begin, m_End );
>>+ return std::distance<IteratorT>( m_Begin, m_End );
>
>
> Thanks.
>
> However, I'm not too happy to put this in without shielding other compilers
> for it. Would it be ok to enable it for all borland compilers?
In that case I think the best option is to use
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
Cheers,
Nicola Musatti
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk