Syntheses and thermodynamic studies on the protonation behaviour of polymers containing acylpiperazinyl units in the backbone or in the side chain of a vinyl polymer