title: Is there an easy way to initialize a simple class without a constructor?
body: <p>I have a very simple class, like this:</p>
  
  <pre><code>class MySimpleClass
  {
  public:
      uint16_t   m_myInt;
      String     m_myString;
      String     m_myOtherString;
      MyEnum     m_myEnumValue;
      bool       m_myBool;
  };
  </code></pre>
  
  <p>This class is part of a pre-compiled library that I can't change, and it doesn't offer a constructor. Is there any way that I can initialize this class <em>without having to do something like this...</em></p>
  
  <pre><code>MySimpleClass msc;
  msc.m_myInt = 1;
  msc.m_myString = "foo";
  msc.m_myOtherString = "bar";
  msc.m_myEnumValue = ENUM_VALUE_YES;
  msc.m_myBool = true;
  </code></pre>
  
  <p>I'm not averse to doing it that way, but I'm curious to know if there's some kind of initialization syntax that will do it?</p>
  
  <p>I'm working in C++03, but answers in C++11 will be of interest as well.</p>