Skip to content

Commit

Permalink
Rename the 'maxSize' function of the 'AlignedAllocator' class templat…
Browse files Browse the repository at this point in the history
…e to 'max_size' (required by the Clang compiler)
  • Loading branch information
igl42 committed Mar 1, 2015
1 parent 974b2d8 commit 60b3b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blaze/util/AlignedAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
//@}
Expand Down Expand Up @@ -181,7 +181,7 @@ inline AlignedAllocator<Type>::AlignedAllocator( const AlignedAllocator<Type2>&
// \return The maximum number of elements that can be allocated together.
*/
template< typename Type >
inline size_t AlignedAllocator<Type>::maxSize() const
inline size_t AlignedAllocator<Type>::max_size() const
{
return size_t(-1) / sizeof( Type );
}
Expand Down

0 comments on commit 60b3b8d

Please sign in to comment.