Skip to content

Nonthrowing constructors for C++ binding of Rust std types #92

@maurer

Description

@maurer

In some constructors, cxx uses exceptions to indicate failure. Many codebases specifically disable exception support for C++ for a variety of reasons (Firefox and Chromium amongst them).

In the long term, I would hope we could design a system that would allow these errors to be caught in both exception-based C++ and -fno-exceptions code, but for now even just printing the error message and abort()ing would at least be a start.

In summary:

  • Do you have plans to support non-exception C++, or would you be open to such plans?
  • In the short term, would you be open to a configuration switch that would generate fatal errors rather than throwing an exception?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions