fix common_type: support C++14 version