Is codecvt not a std header?

The reason why GCC rejects this code is simple: libstdc++ doesn’t support <codecvt> yet.

The C++11 support status page confirms this:

22.5 Standard code conversion facets N

Leave a Comment