title: Why are some functions within my template class not getting compiled?
body: <p>I am using VS Express 2013 trying to compile a c++ project. I've created a template class with some functions. The class and its functions are all in one header file. I've included the file, I've used the class, I've called functions from it, and despite all that visual studio won't compile the classes' functions that I'm not using. I've turned off all optimizations. Do I HAVE to use a function that I've written just to see that it compiles or not?</p>
  
  <p>Here is the function:</p>
  
  <pre><code>void remove(ID id)
  {
      sdfgsdfg456456456456sfdsdf
  }
  </code></pre>
  
  <p>The function shouldn't compile. And indeed the project won't compile if I do use this function, but if I don't use the function the project will compile, even if I use other functions from within this class.</p>
  
  <p>Is there a fix to this? Will the same thing happen if I implement the function in a .cpp file?</p>
  
  <p>Edit: I neglected to mention it is a template class. I've added that information in.</p>