overloaded stream extraction operator error
<p>how do you assign extraction operator to a linked list class.</p>

<pre><code>struct Node{
    int x;
    Node *next;
  }*p;
</code></pre>

<p>and here is my function</p>

<pre><code>istream&amp; operator&gt;&gt;(std::istream &amp;is, list &amp;l){
  is&gt;&gt;l;
  return is;
}
</code></pre>

<p>and this doesn't work, it gives me a segmentation error
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5f3ffff8
0x000000010000127b in operator>> ()</p>
