fix msvs compile by using explicit assigment operator - closes #2588