title: Assigning class variables via named parameters in constructor call in C++
body: <p>I am coming from C# background. There I could do something like this:</p>
  
  <pre><code>Callback callback = new Callback
      {
          src = src,
          callbackPtr = callbackPtr
      };
  </code></pre>
  
  <p>assuming there is only an empty constructor:</p>
  
  <pre><code>Callback(){}
  </code></pre>
  
  <p>and both variables are public.</p>
  
  <p>Is there something like that in C++ or do I have to create parameterized constructor here?</p>