title: VS 2017 C++ compilation problems
body: <p>I have problem with my VS 2017. Everytime i change the body of my method (e.g. multiplication of matirces) in the class.cpp file i have to rewrite instruction in main function. I.E. if I have an a = b * c; statement i must delete and add again multiplication symbol int the main in "test.cpp" and then compile. Otherwise VS will not include the change in my method and will act as there was no change at all in the method implementation.</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT
  This is the code im trying to fix:</p>
  
  <pre><code>template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt;::Matrix(unsigned rows, unsigned cols, T const &amp; init_val)
  {
      _matrix.resize(rows);
      for (unsigned i = 0; i &lt; _matrix.size(); i++)
          _matrix[i].resize(cols, init_val);
      _rows = rows;
      _cols = cols;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt;::Matrix(Matrix&lt;T&gt; const &amp; mx)
  {
      _matrix = mx._matrix;
      _rows = mx.GetRows();
      _cols = mx.GetCols();
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt; &amp; Mx::Matrix&lt;T&gt;::operator=(Matrix&lt;T&gt; const &amp; mx)
  {
      if (this == &amp;mx)
          return *this;
  
      unsigned new_rows = mx.GetRows();
      unsigned new_cols = mx.GetCols();
  
      _matrix.resize(new_rows);
      for (unsigned i = 0; i &lt; _matrix.size(); i++)
          _matrix[i].resize(new_cols);
  
      for (unsigned i = 0; i &lt; new_rows; i++) {
          for (unsigned j = 0; j &lt; new_cols; j++) {
              _matrix[i][j] = mx(i, j); // musisz przeciazyc operator()()
          }
      }
  
      _cols = new_cols;
      _rows = new_rows;
      return *this;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt; Mx::Matrix&lt;T&gt;::operator+(Matrix&lt;T&gt; const &amp; mx) const
  {
      Mx::Matrix&lt;T&gt; temp(mx); // ALBO Mx::Matrix&lt;T&gt; temp(_rows, _cols, 0.0)
      for (unsigned i = 0; i &lt; this-&gt;GetRows(); i++) {
          for (unsigned j = 0; j &lt; this-&gt;GetCols(); j++) {
              temp(i, j) = (*this)(i, j) + mx(i, j); // ALBO this-&gt;_matrix[i][j]
          }
      }
      return temp;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt;&amp; Mx::Matrix&lt;T&gt;::operator+=(Matrix&lt;T&gt; const &amp; mx)
  {
      return *this = *this + mx;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt; Mx::Matrix&lt;T&gt;::operator-(Matrix&lt;T&gt; const &amp; mx) const
  {
      Mx::Matrix&lt;T&gt; temp(mx); // ALBO Mx::Matrix&lt;T&gt; temp(_rows, _cols, 0.0)
      for (unsigned i = 0; i &lt; this-&gt;GetRows(); i++) {
          for (unsigned j = 0; j &lt; this-&gt;GetRows(); j++) {
              temp(i, j) = (*this)(i, j) - mx(i, j); // ALBO this-&gt;_matrix[i][j]
          }
      }
      return temp;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt;&amp; Mx::Matrix&lt;T&gt;::operator-=(Matrix&lt;T&gt; const &amp; mx)
  {
      return *this = *this - mx;
  }
  
  template&lt;typename T&gt;
  Mx::Matrix&lt;T&gt; Mx::Matrix&lt;T&gt;::operator*(Matrix&lt;T&gt; const &amp; mx)
  {
      unsigned rows = mx.GetRows();
      unsigned cols = this-&gt;GetRows();
      Mx::Matrix&lt;T&gt; temp(rows, cols, 0.0);
  
      for (unsigned i = 0; i &lt; rows; i++) {
          for (unsigned j = 0; j &lt; cols; j++) {
              for (unsigned k = 0; k &lt; rows; k++) {
                  temp(i, j) += (*this)(i, k) * mx(k, j);
              }
          }
      }
      return temp;}
  </code></pre>
  
  <p>and after every change I make here (or anywhere in the project) I must do some silly delete a letter from statement (int main()) and add it again so VS could include my changes in the class.cpp file...</p>