-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error compiling: No member named 'exchange' in namespace 'std' #19
Comments
hey @Dazzid, |
We currently require C++14 for the addon.
Did you catch the manual change that is required to force this in OF on macOS? |
OK, I changed to C++14. Also updated the CLANG_CXX_LANGUAGE_STANDARD[arch=x86_64] = c++14 before running project generator. Now I have new errors. Maybe because I'm using an M1?
|
No. The error is a compile-time error, not a linker error where architecture comes into play. What version of OF are you using? |
I'm using of_v0.11.2, and that's right, the error appears when I change to c++14. |
Do you do a full project clean before rebuilding after changing anything within the build system? |
yes, but the error persists. Do you have this? |
I forgot to mention that compiling with the nightly builds of_v20220712_osx, runs smoothly. |
I wouldn’t close this since our releases are based on OF releases and the current release 11.2 has this issue. We do not tests against nightly builds of the current OF git master as it’s too much of a moving target.
Better would be to find the actually change that fixes this and add a note in the readme for what people can do to modify OF 11.2… assuming it’s and easy change.
Please reopen for now.
enohp ym morf tnes
-----------
Dan Wilcox
danomatika.com
robotcowboy.com
… On Jul 20, 2022, at 8:42 PM, David Dalmazzo ***@***.***> wrote:
Closed #19 as completed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
I also opened the question in OF forums, and of_v0.11.2 won't compile in C++14 with an easy change |
Can you add a link to your forum post? |
yes, here it is. |
If the issue is that C++14 won't work but C++17 will, then use C++17. This addon requires a minimum of C++14 but 17 should be fine. |
I'm closing this for now as I'm not seeing this issue OF 0.11.2 on macOS 12 with Xcode 14. |
I'm trying to compile in MacOsX example_basic, but I'm having this error:
No member named 'exchange' in namespace 'std', in context.h line 78.
inline context::context(context&& ctx) noexcept : tfe_context(std::exchange(ctx.tfe_context, nullptr)) { }
inline context& context::operator=(context&& ctx) noexcept { tfe_context = std::exchange(ctx.tfe_context, tfe_context); return *this; }
I might be missing a step of the installation?
The text was updated successfully, but these errors were encountered: