Блог пользователя SADMAN

Автор SADMAN, история, 5 месяцев назад, По-английски

Why I'm getting Compilation error on a same code? On this one 243516618, I use GNU G++17 7.3.0 and its totally okay and accepted also but when I submit 243516577 same code on GNU G++20 11.2.0 (64 bit, winlibs) language I got compilation error on this problem 1494A - ABC String. Why?

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

C++20 added a new class std::regular, that results in ambiguous with the name of your function regular(std::string)

  • »
    »
    5 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks bro! Now I got it!

    • »
      »
      »
      5 месяцев назад, # ^ |
        Проголосовать: нравится +10 Проголосовать: не нравится

      Now that I also compiled your code, the compiler clearly states that. Why to ask a question from others and wait a long time for an answer as well as taking time from them, when it can be answered by yourself in a short period of time?

»
5 месяцев назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

BOSS এগিয়ে চলুন!