|
|
|
|
|
by einpoklum
270 days ago
|
|
> operator<<() ... widely used in the standard library Not that widely. You must be thinking of the IO streams part of the library. Yes, it's rather poor in many respects. But you don't have to use it! We have perfectly nice variadic printing functions these days! auto number = 42;
std::println("Hello, {}! The answer is {}", "world", number);
|
|
In contrast, the standard C++ stream types have used operator<< overloading for more than 25 years. glog/gtest assertions continue to use it.