title: Public struct inside c++ class
body: <p>I'm trying to define a public struct inside a C++ class, and can't figure out how to make it compile.  In my header, I have the following:</p>
  
  <pre><code>class AtomUtility
  {
      public:
          struct BoundingBox;
          void doWork(struct AtomUtility::BoundingBox bounds);
  };
  </code></pre>
  
  <p>And in the source:</p>
  
  <pre><code>#include"AtomUtility.h"
  struct AtomUtility::BoundingBox
  {
      double xMin, xMax;
  };
  int main()
  {
      AtomUtility::BoundingBox *myBox = new AtomUtility::BoundingBox;
      myBox-&gt;xMin = 0;
      myBox-&gt;xMax = 10;
      AtomUtility *myUtility = new AtomUtility;
      myUtility-&gt;doWork(*myBox);
      delete myUtility;
  }
  void AtomUtility::doWork(struct AtomUtilty::BoundingBox bounds)
  {
      //do things...
  }
  </code></pre>
  
  <p>When I attempt to compile this, I get an error: "class "AtomUtility" has no tag member named "BoundingBox".</p>