Here\'s a simplified version of a cpp code I am trying to work on. When I am assigning var1 the value of var2, the error being shown is "No viable overloaded \'=\'<