1

disable concepts since we don't have c++20

This commit is contained in:
churl
2022-05-20 16:15:56 +02:00
parent 5e2196c898
commit 2b41893743
3 changed files with 22 additions and 15 deletions

View File

@ -55,6 +55,7 @@ public:
// NOTE: I added this
template<typename T>
// requires std::derived_from<T, CGA_Stream>
friend T& operator<<(T& os, const fgc& fg) {
os.flush();
os.color_fg = fg.fg;
@ -62,6 +63,7 @@ public:
}
template<typename T>
// requires std::derived_from<T, CGA_Stream>
friend T& operator<<(T& os, const bgc& bg) {
os.flush();
os.color_fg = bg.bg;