Skip to content
Snippets Groups Projects
Commit a859ec49 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

remove default value for second parameter of allocate(), xlc doesn't

like that

[[Imported from SVN: r1232]]
parent a2a0f4ca
No related branches found
No related tags found
No related merge requests found
......@@ -335,7 +335,7 @@ namespace Dune
{ }
template<class T, int s>
inline T* PoolAllocator<T,s>::allocate(std::size_t n, const T* hint=0)
inline T* PoolAllocator<T,s>::allocate(std::size_t n, const T* hint)
{
assert(n<=(Pool<T,s>::elements));
return static_cast<T*>(memoryPool_.allocate());
......
......@@ -297,12 +297,12 @@ namespace Dune
inline void SLList<T,A>::push_back(const T& item)
{
if(tail_!=0) {
tail_->next_ = allocator_.allocate(1);
tail_->next_ = allocator_.allocate(1, 0);
tail_ = tail_->next_;
tail_->item_=item;
tail_->next_=0;
}else{
tail_=head_=allocator_.allocate(1);
tail_=head_=allocator_.allocate(1, 0);
tail_->next_=0;
tail_->item_=item;
}
......@@ -313,11 +313,11 @@ namespace Dune
inline void SLList<T,A>::push_front(const T& item)
{
if(head_==0) {
head_ = tail_ = allocator_.allocate(1);
head_ = tail_ = allocator_.allocate(1, 0);
head_->item_=item;
head_->next_=0;
}else{
Element* added = allocator_.allocate(1);
Element* added = allocator_.allocate(1, 0);
added->item_=item;
added->next_=head_;
head_=added;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment