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:
Mathew Sutcliffe
2014-02-16 19:55:08 +00:00
parent 2dd72c6d3e
commit f60b58ccd2
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
//! @}
/*!

View File

@@ -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;
//! @}
/*!