[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -fno-exceptions support to marshaling/types in xdrpp #33

Open
wants to merge 5 commits into
base: cxx20
Choose a base branch
from

Conversation

gramseyer
Copy link

Add enough support to build xdrpp with -fno-exceptions to use the marshalling and generated xdr headers. Not a full implementation of the networking library with -fno-exceptions.

It'd be useful to build xdrpp into two libraries (one for network stack, one for marshaling) and to add separate compile flags for each.

@gramseyer gramseyer changed the title Add -fnoexcept support to marshaling/types in xdrpp Add -fno-exceptions support to marshaling/types in xdrpp Jun 2, 2022
@MonsieurNicolas
Copy link
Contributor

I am not sure I understand the purpose of the original code as it does not implement "copying" on error:

      try { ueb.copy_construct_to(this); }
      catch(...) { new (static_cast<void *>(this)) union_entry_base; }

so... can we just always do what you're doing here? ie:

     ueb.copy_construct_to(this);

without try/catch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants