!9886 support compile by g++8.0 on centos

From: @zyli2020
Reviewed-by: @limingqi107,@cristoval
Signed-off-by: @cristoval
pull/9886/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 57c783af07

@ -70,7 +70,7 @@ struct MemSwapInfo {
};
struct SwapInfoComp {
bool operator()(const MemSwapInfo &a, const MemSwapInfo &b) {
bool operator()(const MemSwapInfo &a, const MemSwapInfo &b) const {
int swap_kind_a = static_cast<int>(a.swap_kind_);
int swap_kind_b = static_cast<int>(b.swap_kind_);
if (swap_kind_a < swap_kind_b) {

Loading…
Cancel
Save