Skip to content

Commit

Permalink
revert changes to root.h
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Oct 3, 2011
1 parent 9d01ccf commit e71b324
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions src/root/root.h
Expand Up @@ -349,10 +349,8 @@ struct Array : Object
};

template <typename TYPE>
struct ArrayBase : protected Array
struct ArrayBase : Array
{
using Array::dim;

TYPE **tdata()
{
return (TYPE **)data;
Expand All @@ -366,28 +364,6 @@ struct ArrayBase : protected Array
return ((TYPE **)data)[index];
}

using Array::mark;
using Array::toChars;

using Array::reserve;
using Array::setDim;
using Array::fixDim;

void push(TYPE *a)
{
Array::push((void *)a);
}

TYPE *pop()
{
return (TYPE *)Array::pop();
}

void shift(TYPE *a)
{
Array::shift((void *)a);
}

void insert(size_t index, TYPE *v)
{
Array::insert(index, (void *)v);
Expand All @@ -403,10 +379,10 @@ struct ArrayBase : protected Array
Array::append((Array *)a);
}

using Array::remove;
using Array::zero;
using Array::tos;
using Array::sort;
void push(TYPE *a)
{
Array::push((void *)a);
}

ArrayBase *copy()
{
Expand Down

0 comments on commit e71b324

Please sign in to comment.