Heat-curable or heat-activatable adhesive