What is the difference between the two sentences?
She admitted to committing adultery with her old flame.
She admitted to having committed adultery with her old flame.
If there is no difference at all, is it perfectly all right to use the continuous form instead of the perfect form in all cases?