-
Notifications
You must be signed in to change notification settings - Fork 237
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
Many warnings [...] hides overloaded virtual function #155
Comments
I was fixing similar warnings/problems already (see #29) but this one is non-trivial as the wrapping factory generator has more complex logic and AFAIK by design it intentionally wraps some of the label functions with different return types, inheritance is causing problems in this case. @djowel wrote these factories and maybe has an idea how they could be written differently to be more warning-safe. @djowel I think this is a good place to start thinking about more functional-style programming interface, eg |
Until this problem gets fixed, can this warning possibly be silenced with gcc diagnostic pragmas? If it could be replaced with a |
This is a template code. Can not really move it to a source file. I would rather rewrite the wrapper to have a different interface. |
I'll look into this asap. |
I think the box | align.top.left | margin(10, 10, 20, 20) (see #145) In the expression above, I still use the dot notation for "attributes" of similar kinds as it makes sense to group them together (i.e. box | align | top | left | margin(10, 10, 20, 20) |
This is now fixed in the |
The branch
|
Yes, that is my intent. A CMake option perhaps?
And it is good that it detected that! Care for a PR? (Edit: of course you already did :) |
Hello, the file
label.hpp
emits a series of warnings of the same kind.Since it's in the header, it propagates into the program which uses the library, it's a warning which I prefer to not disable on program side if possible.
Output is as follows.
Compiler
The text was updated successfully, but these errors were encountered: