Answer
The answer is "Love Affair", a 1939 romantic comedy film directed by Leo McCarey. Irene Dunne and Charles Boyer played the lead roles of Terry McKay and Michel Marnet. The film tells the story of a young woman and a married man who fall in love on an ocean liner and agree to meet again six months later if they are both still single.