title: Do overloaded operators within classes require __declspec(dllexport) if they're used in a DLL project?
body: <p>When using <code>__declspec(dllexport)</code>, should overloaded operators also have this exportation flag assigned? For example, say you have something like:</p>
  
  <pre><code>/* 
  Overloaded operator (equivalent operator) returns true if x equals compared vector
  */
  __declspec(dllexport) bool operator ==(const vector &amp;v)
  {
    return (x == v.x &amp;&amp; y==v.y &amp;&amp; z==v.z);
  }
  </code></pre>
  
  <p>Is the <code>__declspec(dllexport)</code> necessary in order to use <code>==</code> on your class type? Or should that not be exported because it's specific to that class and any inherited classes?</p>