Nested empty class
<p>I have the following code</p>

<pre><code>class nest_empty
{
   class empty{};
};
</code></pre>

<p>Will the size of <code>nest_empty</code> be 1 (on my implementation sizof an empty class is 1)? If yes why? Can <code>nest_empty</code> be considered as an empty class?</p>

<p><strong>EDIT:</strong></p>

<pre><code>class nest_empty
{
   class empty{};
   empty d;
};
</code></pre>

<p>Will the size of <code>nest_empty</code> still be 1? If yes why?</p>
