Closed eyalroz closed 3 years ago
Sorry if the title misleads. However I think in this case, minimal is in the eye of the beholder. Some types of minimal I can think of include:
operator<<
defined will work without any extra effort)I think this library does fairly well on 1-4. 5 could certainly be improved with separate compilation. 6 is not so good, as you point out.
But overall, the philosophy here is one of minimalism so I feel the summary is largely accurate.
or even decoupled the underlying "real-output" function and make this wrapper more abstract
Regardless of quibbles of terminology, this is a decent idea and could be worth pursuing. I don't have time to do it myself, however.
The repository title is "A minimal type safe printf() replacement"... but it really isn't minimal if you pull in all of
<iostream>
... you could have just wrapped printf (or even decoupled the underlying "real-output" function and make this wrapper more abstract). Right now the title is misleading, so I suggest it be rephrased.Otherwise - nice little library... I was just hoping to be able to use it where the standard library streams are not available.