Код: Выделить всё
#include
#include
#include
#include
#include
class AppData
{
public:
static inline const std::wstring APPLICATION_TITLE = L"Test\n";
static inline constexpr std::vector APP_TITLE_FMT{ { 0, L"\x1b[1mHello" }, { 4, L"\x1b[0mHello" } };
};
int main(int argc, char** argv)
{
std::wcout
Подробнее здесь: [url]https://stackoverflow.com/questions/79067591/constexpr-for-vector-that-contains-a-stdstring-compiler-bug[/url]
Мобильная версия