Quoting strings passed to an output stream
In C++14, there's std::quoted. Some advantages it has over your approach:


It works with both output and input streams
You can specify the delimiter and escape character
It's a stream manipulator, allowing it to be used seamlessly with operations while yours is a one-off class with zero interoperability
It supports wide strings