I'm trying to implement a heap, but I've got the above error on one of my functions.
Here's my header file:
template <typename E>
class Heap
{
private:
    class Node {
        E data;
        Node * left;
        Node * right;
    };
    Node root;
    int length;
    E * preorder(E * list, int length, Node node);
    E * inorder(E * list, int length, Node node);
    E * postorder(E * list, int length, Node node);
    void clear(Node node);  //Recursively clears all nodes and frees all pointers
public:
    Heap();
    Heap(E * list, int length);
    ~Heap();
    Node * getRoot();
    void buildHeap(E * list, int length);
    E * returnList();
};
And the specific function in question (although there's similar errors on others). There error is on the second line
template <typename E>
Node<E> * Heap<E>::getRoot() {
    return &root;
}