So, I am in need of libc in my C ++ program. However, I don't like the idea of sprinkling it all over the global namespace. Ideally, I would like to force all libc into the std:: , so I would have to do std::memcpy , not memcpy .
Is it possible? And How? I want to use compiler-specific macros if necessary (I am only targeting MS VC ++ 10.0 and GCC 4.6).
Edit: I literally mean "force declare to std" so that they cannot be processed without the std :: prefix. In addition, I include cstdio , not stdio.h .
Thanks!
user438034
source share