clamp for older boost versions