lambda with dependency fix on msvc