From 60b3b8dfa9e5b9674bf2816605d0d46df2185afe Mon Sep 17 00:00:00 2001 From: Klaus Iglberger Date: Sun, 1 Mar 2015 06:14:46 +0100 Subject: [PATCH] Rename the 'maxSize' function of the 'AlignedAllocator' class template to 'max_size' (required by the Clang compiler) --- blaze/util/AlignedAllocator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blaze/util/AlignedAllocator.h b/blaze/util/AlignedAllocator.h index b99d20e8..c2d3a2b4 100644 --- a/blaze/util/AlignedAllocator.h +++ b/blaze/util/AlignedAllocator.h @@ -111,7 +111,7 @@ class AlignedAllocator //**Utility functions*************************************************************************** /*!\name Utility functions */ //@{ - inline size_t maxSize() const; + inline size_t max_size() const; inline Pointer address( Reference x ) const; inline ConstPointer address( ConstReference x ) const; //@} @@ -181,7 +181,7 @@ inline AlignedAllocator::AlignedAllocator( const AlignedAllocator& // \return The maximum number of elements that can be allocated together. */ template< typename Type > -inline size_t AlignedAllocator::maxSize() const +inline size_t AlignedAllocator::max_size() const { return size_t(-1) / sizeof( Type ); }