error:C++ 编译错误 will be initialized after [-Werror=reorder]

  1. 根据提示找到VINSLoop::Vocabulary::Vocabulary()
    C++ 编译错误 will be initialized after [-Werror=reorder]
    2.进入Vocabulary()构造函数
    C++ 编译错误 will be initialized after [-Werror=reorder]
    其在构造是按照nNodes(0), nodes(nullptr), nWords(0), words(nullptr)顺序赋值的

3.原声明是按照nNodes, nWords, nodes, words;顺序,如下图1,将声明顺序换位2步骤中的初始化顺序,如下图2所示即可
C++ 编译错误 will be initialized after [-Werror=reorder]

C++ 编译错误 will be initialized after [-Werror=reorder]

相关文章:

  • 2021-12-07
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2018-12-10
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案