title: Must the definition of a C++ inline functions be in the same file?
body: <p>I defined a function <code>show()</code> as inlined in a header file called <code>ex.h</code> and the definition of the function inside <code>ex.cpp</code>. I expected that this will give me an error since the compiler will not know what to replace where the <code>show()</code> function is called. But because I'm using an IDE, it worked fine. How could this happen?</p>
  
  <p>And BTW when I tried to compile it manually it gave me an error that the <code>show()</code> is used but not defined.</p>