Mercury13 / unicodia

Encyclopedia of Unicode characters
https://mercury13.github.io/unicodia/
GNU General Public License v3.0
83 stars 3 forks source link

compilation issue "AutoBuilder\unibase.cpp" #351

Closed NSP-0123456 closed 5 months ago

NSP-0123456 commented 5 months ago

I've switched to new gcc and get compilation issue on file "AutoBuilder\unibase.cpp" due to a constinit with uninitialized structure.

constinit ucd::Numeric NO_NUMERIC {
      |                            ^~~~~~~~~~
../AutoBuilder/unibase.cpp:35:5: error: temporary of non-literal type 'std::string' {aka 'std::__cxx11::basic_string<char>'} in a constant expression
   35 |     };

The simpliest way to compile was to change to const ucd::Numeric NO_NUMERIC = { 'Probably not the best but compile even with newest QT 6.7

Mercury13 commented 5 months ago

Done, someday I used string_view, but switched to string.