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
More Related Contents:
- What is “Expression SFINAE”?
- Overload resolution between object, rvalue reference, const reference
- What does `auto && e` do in range-based for-loops?
- Does C++11 allow dollar signs in identifiers?
- What does static_assert do, and what would you use it for?
- What differences, if any, between C++03 and C++11 can be detected at run-time?
- Default member values best practice
- std::tuple get() member function
- Constructor as a function try block – Exception aborts program
- Is it always the case that sizeof(T) >= alignof(T) for all object types T?
- Idiomatic Way to declare C++ Immutable Classes
- std::this_thread::sleep_for() and GCC
- Why isn’t std::array::size static?
- How to know underlying type of class enum?
- In lambda functions syntax, what purpose does a ‘capture list’ serve?
- Multiple “could not be resolved” problems using Eclipse with minGW
- Why is reinterpret_cast not constexpr?
- Which greedy initializer-list examples are lurking in the Standard Library?
- How does std::forward receive the correct argument?
- const auto std::initializer_list difference between Clang and GCC
- How to initialize all tuple elements by the same arguments?
- c++11 std::async doesn’t work in mingw
- Is substitution performed on a variadic parameter pack type if the pack is empty?
- Undefined reference to process(std::__cxx11::basic_string … ) when compiling affdex linux sample applications
- Workaround for error C2536: cannot specify explicit initializer for arrays in Visual Studio 2013
- Is it possible to write an agile Pimpl in c++?
- Explicit Return Type of Lambda
- C++ view types: pass by const& or by value?
- Why is this C++ wrapper class not being inlined away?
- Overload resolution with ref-qualifiers