Comments (6)
Hmm, i do not see noexcept
in an attribute list, so it might be implemented differently. Could you please post code snippet and briefly describe what problem does it trigger?
from binder.
class RuntimeException : public std::exception {
private:
std::string _message;
public:
RuntimeException(const std::string &msg = "");
virtual const char* what() const noexcept override;
};
Notice how there is a noexcept for method what(). The generated code currently doesn't add this attribute and the compiler give a static error saying
error: exception specification of overriding function is more lax than base version const char * what() const override {
from binder.
Ok I think I found the source regarding this
https://clang.llvm.org/doxygen/ExceptionSpecificationType_8h.html
Haven't looked at how to go from decl to this ExceptionSpecification though.
Also, this means that other than noexcept, we shall probably handle exception throwing in general as well.
from binder.
Thank you @thisiscam , this was very helpful! I pushed the patch which i think should handle both noexcept
and throw()
cases, could you please test if this works for you?
from binder.
Thanks for the prompt respoonse! works like a charm!
from binder.
Great, glad it helped!
from binder.
Related Issues (20)
- Unary `+`, `-`, `*` invalid conversion HOT 4
- Post/Pre increment/decrement operator confusion HOT 2
- Operator bindings undocumented HOT 3
- Literal operator bound oddly HOT 2
- Unstable `make -j`. HOT 2
- `__div__` does not exist in python 3.x, only 2.x. Python3 uses either `__truediv__` or `__floordiv__` HOT 2
- Uncompile-able results due to namespacing HOT 5
- Official docker image HOT 7
- Compilation error when using public virtual parent class HOT 10
- Import Error on M1 Mac when using Docker Image HOT 9
- Spack support HOT 9
- Binding __match_args__ HOT 4
- build.py didn't find python executable (solved) HOT 1
- Option -namespace A together with +class A::MyClass HOT 3
- ImportError when importing two different packages generated with binder that share an overlap HOT 8
- Release? HOT 6
- [question] customization of a trampoline function definition HOT 5
- Unclear usage of `add_on_binder` HOT 14
- Is there a way to exclude an enum? HOT 2
- Non-portable generated code for `size_t` HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binder.