Browse Source

!9886 support compile by g++8.0 on centos

From: @zyli2020
Reviewed-by: @limingqi107,@cristoval
Signed-off-by: @cristoval
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
57c783af07
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/optimizer/mem_reuse/mem_copy_manager.h

+ 1
- 1
mindspore/ccsrc/backend/optimizer/mem_reuse/mem_copy_manager.h View File

@@ -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