genericize custom boost