I am using a shared library whose functions are doing std::cout everywhere. Is is possible to do anything at the caller level wherein I can suppress the cout outout or redirect it to some location?
Is it even possible to attempt such a thing in c++.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like this, just make function wrappers for your library calls that would redirect
cout.