I am receiving the error 'List::showList' : function-style initializer appears to be a function definition' on a function in my cpp file
<p>GithubLink<a href="https://github.com/leomdmfiel/Assignment/tree/master/BankManager/BankManager" rel="nofollow">https://github.com/leomdmfiel/Assignment/tree/master/BankManager/BankManager</a>
First here's my header:</p>

<pre><code>class List
{
protected:
    Node* head;
public:
    List(object data);
    void addNode(Node* headRef, object data);
    void removeNode();
    void showList(Node* headRef);
};
</code></pre>

<p>And here is the function showList</p>

<pre><code>void List::showList(Node* headRef)
{   Node* current = headRef;
    while (current != NULL) 
    {
        cout &lt;&lt; current-&gt;retrieveData();
        current = current-&gt;retrieveNext();
    }   
}
</code></pre>

<p>For some reason at compile it keeps giving me the error error C2448: 'List::showList' : function-style initializer appears to be a function definition even though I've copied the declaration letter by letter. So I'm at a loss and looking for help.</p>
