[src/classical/optimization] fix breakage due to boost changes from v1.55 to v1.56