GithubHelp home page GithubHelp logo

Comments (5)

randvoorhies avatar randvoorhies commented on September 18, 2024

Yup, it looks like this is an issue in gcc as well. This isn't a specific compiler error - it is a coding error on our part. The issue is that even though detail::Versions::mapping is being described as static in the .hpp file, it is also being allocated in the same file (on line 318). This means that every compilation unit will try to reallocate this map.

Here is a very simple gist demonstrating the problem: https://gist.github.com/randvoorhies/8033009

from cereal.

randvoorhies avatar randvoorhies commented on September 18, 2024

Please check out the issue37 branch, and let me know if it works for you.

Shane - can you make sure this doesn't mess up any of your versioning mechanisms?

from cereal.

AzothAmmo avatar AzothAmmo commented on September 18, 2024

Looks fine on my end.

from cereal.

chkone avatar chkone commented on September 18, 2024

Oh thank!
That fix the issue.

But I have another one with JSON:
If I replace cereal::XMLOutputArchive by cereal::JSONOutputArchive and include json.hpp I have this error:
Error 4 error : no instance of function template "rapidjson::Writer<Stream, Encoding, Allocator>::characterOk" matches the specified type ...\extLibs\includes\cereal\external\rapidjson\writer.h 188 ObjectsSystem (Intel C++ 14.0)
Error 5 error : no instance of function template "rapidjson::GenericReader<Encoding, Allocator>::characterOk" matches the specified type ...extLibs\includes\cereal\external\rapidjson\reader.h 394 ObjectsSystem (Intel C++ 14.0)
...

Do you know the reason?

Regards

Chkone

from cereal.

randvoorhies avatar randvoorhies commented on September 18, 2024

Hi Chkone,
I'm glad the issue is fixed for you. I'm not sure what's causing your next problem, so please submit another Github issue report with a small self contained code sample, and we'll see what we can do.

from cereal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.