Missing rules for deleted default constructor (and copy control members)?
<p>My c++ book (lippman, c++ primer, fifth ed., p. 508) provides these 4 rules for figuring out when the compiler will synthesize the copy control and default constructor as deleted members:</p>

<blockquote>
  <ul>
  <li><p>The synthesized destructor is defined as deleted if the class has a member whose own destructor is deleted or inaccessible (e.g. private).</p></li>
  <li><p>The synthesized copy constructor is defined as deleted if the class has a member whose own copy constructor is deleted or inaccessible. It is also deleted if the class has a member with a deleted or inaccessible destructor.</p></li>
  <li><p>The synthesized copy-assignment operator is defined as deleted if a member has a deleted or inaccessible copy-assignment operator, or if the class has a const or reference member.</p></li>
  <li><p>The synthesized default constructor is defined as deleted if the class has a member with a deleted or inaccessible destructor; or has a reference member that does not have an in-class initializer; or has a const member whose type does not explicitly define a default constructor and that member does not have an in-class initializer.</p></li>
  </ul>
</blockquote>

<p>I'm failing to see how these rules explain the SECOND error here:</p>

<pre><code>class Foo {
public:
  Foo(int i) { }
};

class Bar {
private:
  Foo foo;
};

int main() {
  Foo foo; //error: no matching constructor in Foo
  Bar bar; //error: implicitly deleted constructor in Bar
  return 0;
}
</code></pre>

<p>The first error is understandable and has nothing to do with this question directly. The second error is surprising because the above rules not explain why Bar should get its default constructor synthesized as deleted.</p>

<p>what rules is my book missing, or am I not grasping the rules?</p>
