How to return a pointer that uses a custom constructor
<p>I'm getting this error:</p>

<p><code>Expected '(' for function-style cast or type construction</code></p>

<p>On the second line:</p>

<pre><code>struct OpenALInterface * CreateOpenALInterface(int numLoadedSounds, int numPlayingSounds){
   return new IOS_OpenAL(int numLoadedSounds, int numPlayingSounds); //ERROR ABOVE
   //    return new IOS_OpenAL();  //this works fine, no error
 };
</code></pre>

<p>Class has this:</p>

<pre><code>class IOS_OpenAL: public OpenALInterface{

 public:

IOS_OpenAL(int numLoadedSounds, int numPlayingSounds){
    //do stuff
   };

  //    IOS_OpenAL(){}; //works
</code></pre>

<p>What exactly is this error referring to? It looks like a syntax error.</p>

<p>The base class is abstract with no constructors. Is that the issue? Can a subclass override or have its own constructor not in the base class?</p>
