mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
using intptr_t as the size_type for containers
refs #92 fixes MSVC "possible loss of data" warning when compiling for 64bits
This commit is contained in:
@@ -42,7 +42,7 @@ namespace BlackMisc
|
||||
typedef typename Iterators::ConstForwardIterator<T> const_iterator;
|
||||
typedef const_iterator iterator; // can't modify elements in-place
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef int size_type;
|
||||
typedef intptr_t size_type;
|
||||
//! @}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackMisc
|
||||
typedef typename Iterators::ConstBidirectionalIterator<T> const_iterator;
|
||||
typedef typename Iterators::BidirectionalIterator<T> iterator;
|
||||
typedef ptrdiff_t difference_type;
|
||||
typedef int size_type;
|
||||
typedef intptr_t size_type;
|
||||
//! @}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user