Using namespace std

Hello, i’m a beginner in C++ and i’m trying to undesrtand the namespace in OF. Indeed, i don’t understand why a cout << “foo”, work in an OF app without declaring the “using namespace std;” : is-it already done elsewhere ?

Thanks for you help

You do not need to add std:: in front of cout because the std namespace is already added.
Search the string using namespace std to see where it is added exactly in the OF source code.

Thank you for your reply :slightly_smiling: I will digg into the OF source code to see where it’s added.