Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:00:10+00:00 2026-06-04T08:00:10+00:00

I previously asked this question about how to make versioned serializaion using boost::serialization::access I

  • 0

I previously asked this question about how to make “versioned” serializaion using boost::serialization::access

I have been able to do some of what I want, but there seem to be significant limitations.

Specifically, I would like to be able to change the versions at run time and change the serialization version dynamically in the code.

However, the macro

BOOST_CLASS_VERSION(ClassName, ver)

seems not to allow this type of behavior.

I suppose I could make different classes and use them each when I need each, but I would prefer not to since that requires a lot of code changes for us.

Is there a way to programmatically change the class to use different versions during the same execution?

A little more explanation of what we need to do:

The use case I am trying to work with is the program reading in the old version (when it is first run/upgraded), then writing with the NEW version and then also being able to read that NEW version.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:00:12+00:00Added an answer on June 4, 2026 at 8:00 am

    The design appears to intend that you do not change the version dynamically. Supporting the reading of old data is however possible via the version parameter to your serialize, save, or load functions. That is, in your loading function you can check the version and see if particular parts have to be loaded differently. So loading old data is possible, but it has to be done within one set of serialization functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've previously asked a question about an issue I have been experiencing with CSharpOptParse
I asked a question about this previously but my database structure has changed, and
I asked a previous question about serialization and validation. Someone mentioned using the JSON
I have previously asked a question about how can I write a code block
I've previously asked a question of about Delegates does anyone have a must have
I have previously solved a similar problem in this question , where I asked
Before you say anything, I have read the previously asked questions about this issue.
I know that this question has been asked previously, but before you give me
I asked a similar question about this previously, but I did not specify that
This stems from a previous question I asked - about a write conflict with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.