Settled for old boost versions that do not have common_type.hpp.