Airbus FBW heading selector has two modes: One maintains a selected heading, the other maintains a selected track. The track mode automatically adjusts for wind, as detected by the on-board ADIRS.
Very easy on Airbus !
As vilas says though, the assertion quoted by the OP about track versus heading is a bit suspect - I have rarely been asked by ATC to follow a track. Always headings.