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

Addon developers: Update your addons #7778

Open
dimitre opened this issue Dec 2, 2023 · 0 comments
Open

Addon developers: Update your addons #7778

dimitre opened this issue Dec 2, 2023 · 0 comments

Comments

@dimitre
Copy link
Member

dimitre commented Dec 2, 2023

I'm opening this issue to document a recent change where using namespace std; was removed.
Maybe your addon need more explicit std:: in some places like std::min, std::cerr, etc.
More details here:

#ifdef OF_LEGACY_INCLUDE_STD
using namespace std;
#else
// this will eventually be disabled by default
#define OF_USE_MINIMAL_STD
#ifdef OF_USE_MINIMAL_STD
using std::cout;
using std::deque;
using std::endl;
using std::make_shared;
using std::map;
using std::max;
using std::pair;
using std::shared_ptr;
using std::string;
using std::stringstream;
using std::swap;
using std::to_string;
using std::vector;
using std::weak_ptr;
#endif
#endif

@dimitre dimitre pinned this issue Dec 2, 2023
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

1 participant