Skip to content
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: ‘exchange’ is not a member of ‘std’ #26

Open
kevung opened this issue Jul 10, 2023 · 4 comments
Open

error: ‘exchange’ is not a member of ‘std’ #26

kevung opened this issue Jul 10, 2023 · 4 comments

Comments

@kevung
Copy link

kevung commented Jul 10, 2023

Dear Stephane,
First, thank you very much for your work on darknet, darkhelp and darkmark.
These are fantastic tools.

I encounter a compilation error error: ‘exchange’ is not a member of ‘std’ after
cloning the repo, mkdir build && cd build, cmake .., and cmake --build .
The files concerned by the error are:
-../JuceLibraryCode/modules/juce_gui_basics/misc/juce_DropShadower.cpp
-../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp
-../JuceLibraryCode/modules/juce_gui_basics/windows/juce_ComponentPeer.h

In https://en.cppreference.com/w/cpp/utility/exchange, exchange is defined in utility header.
After having included #include <utility>, the errors disappear.

Take good care,

Kevin

@kevung
Copy link
Author

kevung commented Jul 10, 2023

As indicated in https://en.cppreference.com/w/cpp/error/unexpected_handler , std::unexpected_handler has been removed in c++-17.

@stephanecharette
Copy link
Owner

As indicated in https://en.cppreference.com/w/cpp/error/unexpected_handler , std::unexpected_handler has been removed in c++-17.

Isn't that a duplicate of your other report, issue #27 ?

@kevung
Copy link
Author

kevung commented Jul 10, 2023

Hello Stephane,
yes you are right. I posted my last comment in the wrong issue and I meant to address #27.

@stephanecharette
Copy link
Owner

This should be fixed by e7a4dae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants