wknd for msvc with function which has to be passed by const ref