aafulei / color-console

A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.
MIT License
258 stars 47 forks source link

Not compatible with wcout ? #7

Open Winterherr opened 2 years ago

Winterherr commented 2 years ago

I'd like to use this lib with wcout to dispaly utf16 characters, but when writing wcout << dye::green(L"hello"); I get the error:

error: no match for 'operator<<' (operand types are 'std::wostream' {aka 'std::basic_ostream<wchar_t>'} and 'dye::R<const wchar_t*>' {aka 'dye::colorful<const wchar_t*>'})
     wcout << dye::green(L"hello");
     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any quick solution for this issue?

Patrix9999 commented 2 years ago

This library only supports ostream, wostream is not supported currently.