Zhen
Zhen

Reputation: 4283

Visual Studio alternative for a constexpr string

Visual Studio alredy has not implemented constexpr. Was the best way to refactor this:

constexpr auto DEBUG_FONT = "mydebugfont.ttf";

into a valid line in Visual Studio?

Upvotes: 0

Views: 245

Answers (1)

frasnian
frasnian

Reputation: 2003

I'd use:

const char DEBUG_FONT[] = "mydebugfont.ttf";

Upvotes: 1

Related Questions