Trying yet another scheme, back to a stream wrapper but with mixins this time.
This commit is contained in:
@@ -10,7 +10,10 @@
|
||||
|
||||
int main() {
|
||||
|
||||
auto test = nb::TerminalColor(9, 2030);
|
||||
nb::SmartStream<decltype(std::cout), nb::SmartStreamFormatter> stout(std::cout);
|
||||
|
||||
stout << nb::SmartText{5} << "\ngoop\n";
|
||||
/* nb::SmartText test(100);
|
||||
|
||||
std::cout << test;
|
||||
|
||||
@@ -19,7 +22,7 @@ int main() {
|
||||
if (file.is_open()) {
|
||||
file << test;
|
||||
}
|
||||
file.close();
|
||||
file.close(); */
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user