objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

[MSYS2 CLANG64] warning: 'codecvt_utf8_utf16<wchar_t>' is deprecated [-Wdeprecated-declarations] #465

Closed ghost closed 7 months ago

ghost commented 7 months ago
vm.cpp:152:44: warning: 'codecvt_utf8_utf16<wchar_t>' is deprecated [-Wdeprecated-declarations]
  152 |   std::locale utf8(std::locale(), new std::codecvt_utf8_utf16<wchar_t>);
      |                                            ^
C:/msys64/clang64/include/c++/v1/codecvt:541:28: note: 'codecvt_utf8_utf16<wchar_t>' has been explicitly marked deprecated here
  541 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 codecvt_utf8_utf16
      |                            ^
C:/msys64/clang64/include/c++/v1/__config:983:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
  983 | #    define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
      |                                         ^
C:/msys64/clang64/include/c++/v1/__config:956:49: note: expanded from macro '_LIBCPP_DEPRECATED'
  956 | #      define _LIBCPP_DEPRECATED __attribute__((__deprecated__))
      |                                                 ^
objeck commented 7 months ago

Required to support Unicode characters in the Clang shell.