I had a problem previously because of functions being overloaded without std::
. And the curse is still happening every now and then because I don't use using namespace std;
.
Removing using namespace std causes the program to get crap results
Is there a way to disable all those non-std functions that come from c and only work with c++ functions under the namespace std
(without having to use using namespace std;
)?
In other words: I want to get an error if I use sin()
rather than std::sin()
so that I won't do that mistake. Of c
ourse, not only for sin, but every function that has a conflict with math.h
.