-
Notifications
You must be signed in to change notification settings - Fork 22
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
All-units prebuilt header error on pascal
on MSVC
#284
Comments
|
A lowercase-named macro? The monsters! I think we'll have to handle this the same way we did Thanks for finding the problem and tracking down the root cause! |
It conflicts with the `pascal` macro in `<Windows.h>`. Yes, they really did define a lowercase-named macro in `<Windows.h>`. As with `PI` (#247), the `#ifndef` should immediately unblock most users, but it's not a long-term solution, because it depends on order-of-includes. Therefore, we also deprecate `pascal` (as with `PI` in #250). I think a good rule of thumb is that deprecated constructs should be deprecated for at least one full minor release cycle, so we'll plan to delete it (along with `PI`) as part of 0.5.0. Fixes #284.
It conflicts with the `pascal` macro in `<Windows.h>`. Yes, they really did define a lowercase-named macro in `<Windows.h>`. As with `PI` (#247), the `#ifndef` should immediately unblock most users, but it's not a long-term solution, because it depends on order-of-includes. Therefore, we also deprecate `pascal` (as with `PI` in #250). I think a good rule of thumb is that deprecated constructs should be deprecated for at least one full minor release cycle, so we'll plan to delete it (along with `PI`) as part of 0.5.0. Fixes #284.
I thought we had fixed this in #285, but this compiler explorer link suggests it may still be a problem. Adding Did we miss something? |
I don't use compiler explorer very often; can you show me what is going wrong? |
Well, that is very strange. Nothing appears to be wrong anymore. Although really, I guess the strange part is that it appeared to be broken after landing in the first place --- we really did expect this PR to fix the issue. If you want to see what the problem was, you can replace In any case, I think this is fixed for real now! |
When using https://aurora-opensource.github.io/au/0.3.5/au_all_units.hh with my C++20 project, I get these errors, only on the
pascal
definition. I was originally on a different commit version of the file, and after the change to 0.3.5 proper it had the exact same errors. If I renamepascal
topascal2
, the error goes away. Maybe there's a shadowed type, keyword, or global here, somehow?Compile info:
The text was updated successfully, but these errors were encountered: