No matching function call C++
<p>I'm getting the above error in C++ when trying to initialise an object of type Board. The constructor for board takes in two integers, so it's </p>

<pre><code>Board::Board(int w, int h)
</code></pre>

<p>And I'm trying to create a Connect Four game. The ConnectFour.h file has the following:</p>

<pre><code>Board b;
</code></pre>

<p>in its private variables, and the constructor in ConnectFour.cpp is this:</p>

<pre><code>ConnectFour::ConnectFour()
{
   Board b(7, 6);
</code></pre>

<p>among other things, obviously.</p>

<p>It's giving me the error:</p>

<p>In constructor ‘ConnectFour::ConnectFour(int, int)’:|</p>

<p>error: no matching function for call to ‘Board::Board()’|</p>

<p>note: candidates are:|</p>

<p>note: Board::Board(int, int)|</p>

<p>note: candidate expects 2 arguments, 0 provided|</p>

<p>If anyone could lend a hand, I'd really appreciate it.</p>

<p>Edit: Turns out I was being a bit silly. Thanks guys.</p>
