notabigdirector
V2EX  ›  C++

boost 序列化 在更新类成员后如何兼容原来的序列化数据

  •  
  •   notabigdirector · Dec 15, 2023 · 1647 views
    This topic created in 889 days ago, the information mentioned may be changed or developed.

    使用 boost 进行序列化,但是在后续使用中,出现增删类成员的情况,原先序列化的数据用不了,有什么方法可以兼容吗

    2 replies    2023-12-15 17:40:15 +08:00
    purringpal
        1
    purringpal  
       Dec 15, 2023 via iPhone
    boost ,大学噩梦
    AFOX
        2
    AFOX  
       Dec 15, 2023 via Android
    用 version 判断
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:20 · PVG 07:20 · LAX 16:20 · JFK 19:20
    ♥ Do have faith in what you're doing.