Spaces with two affine connections