View Single Post
Author Message
Toxa
New Member
Join Date: Jan 2024
Old 01-06-2024 , 07:42   CS2 Metamod Plugin std::stringstream
Reply With Quote #1

Hi there!

Can someone please tell me why is stringstream not working with int's inside the metamod plugin?
E.g.:
Code:
//this works
std::stringstream ss;
ss << "123";
//ss.bad() == false here
Code:
//this not works
std::stringstream ss;
ss << 123;
//ss.bad() == true here
Seems like all streams (std::cout, std::clog, std::cerr) not working with any numbers (int/double). If cout, clog, cerr is objects and engine or metamod can replace e.g. rdbuf for them so why even stringstream not working?

Last edited by Toxa; 01-06-2024 at 08:00. Reason: Update info
Toxa is offline