Ad
  • Custom User Avatar

    I'm working fine in VS but it's wrong here, is it my problem?

    In file included from main.cpp:7:
    ./tests.cpp:6:23: error: static_assert expression is not an integral constant expression
            static_assert(Hi::value[0] == 'H' && Hi::value[1] == 'i' && Hi::value[2] == '\0', "");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ./tests.cpp:6:23: note: read of pointer to element of array without known bound is not allowed in a constant expression
    1 error generated.
    
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution