title: C++ no suitable conversion function from "Date" to "Date (*)()" exists
body: <p>I'm working on a payroll program but I keep stumbling on this one error:</p>
  
  <p>Severity    Code    Description Project File    Line    Suppression State
  Error (active)      no suitable conversion function from "Date" to "Date (*)()" exists  Payroll c:\Users\Bart\Documents\Visual Studio 2015\Projects\Payroll\Payroll\Payroll.cpp 58  </p>
  
  <p>Here's my main:</p>
  
  <pre><code>int main()
  {
  int count = 0;
  int option = 0;
  int month;
  int day;
  int year;
  
  cout &lt;&lt; fixed &lt;&lt; setprecision(2);
  
  Employee *employees[arraySize];
  
  cout &lt;&lt; "Welcome to the payroll program!" &lt;&lt; endl;
  
  cout &lt;&lt; "Please enter the current month: ";
  cin &gt;&gt; month;
  
  cout &lt;&lt; "Please enter the current day: ";
  cin &gt;&gt; day;
  
  cout &lt;&lt; "Please enter the current month: ";
  cin &gt;&gt; year;
  
  Date currentDate(month, day, year);
  
  while (option != 3)
  {
      cout &lt;&lt; endl &lt;&lt; "Please select one of the following options" &lt;&lt; endl;
      cout &lt;&lt; "1 - Enter new employee information" &lt;&lt; endl;
      cout &lt;&lt; "2 - View payroll" &lt;&lt; endl;
      cout &lt;&lt; "3 - Exit the application" &lt;&lt; endl;
      cout &lt;&lt; "Please enter your option: ";
      cin &gt;&gt; option;
  
      switch (option)
      {
          case 1:
              if (count &lt; arraySize)
                  {
                      count+= createEmployee(employees, count, currentDate);
                      //This is where the error is occurring, currentDate is underlined
                  }
              else
              {
                  cout &lt;&lt; "You cannot enter any more than " &lt;&lt; arraySize &lt;&lt; " employees." &lt;&lt; endl;
              }
                  break;
          case 2:
              displayEmployees(employees, count);
              break;
          case 3:
              break;
          default:
              cout &lt;&lt; "Please enter a valid menu selection";
      }
  }
  return 0;
  }
  </code></pre>
  
  <p>And here is the first part of my createEmployee method:</p>
  
  <pre><code>int createEmployee(Employee *employees[], int index, Date date())
  {
  string firstName;
  string middleName;
  string lastName;
  int bDay;
  int bMonth;
  int bYear;
  Date currentDate = date();
  string SSN;
  int option;
  </code></pre>