operator overloading error C++
<p>I have a inline operator overloading in cpp file.
My understanding is the inline function should also put in the header file with the body of function. </p>

<p>but when i do that. the error come out which is 
redefinition of "operator ==" </p>

<p>could you explain why is the error like that.
and also, could anyone explain what sorts of content should keep in the header file.? </p>

<pre><code>inline bool operator ==(Duration&amp; d1, Duration&amp; d2)
{

   return d1.getSecond() == d2.getSecond();
}
</code></pre>
