Skip to content

Commit 6f5baa1

Browse files
authored
ofMain: change using namespace std to using string and vector (#7636)
#changelog #utils
1 parent 74e39d0 commit 6f5baa1

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

libs/openFrameworks/ofMain.h

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,28 @@
113113
#include "ofNode.h"
114114

115115
//--------------------------
116+
#ifdef OF_LEGACY_INCLUDE_STD
116117
using namespace std;
117-
118+
#else
119+
120+
// this will eventually be disabled by default
121+
#define OF_USE_MINIMAL_STD
122+
#ifdef OF_USE_MINIMAL_STD
123+
using std::string;
124+
using std::stringstream;
125+
using std::endl;
126+
using std::vector;
127+
using std::max;
128+
using std::make_shared;
129+
using std::deque;
130+
using std::cout;
131+
using std::swap;
132+
using std::pair;
133+
using std::map;
134+
using std::shared_ptr;
135+
using std::weak_ptr;
136+
using std::to_string;
137+
#endif
118138
#endif
139+
140+
#endif // OF_MAIN_H

0 commit comments

Comments
 (0)