fork download
  1. class Class
  2. {
  3. static constexpr int getBug();
  4. };
  5.  
  6. constexpr int Class::getBug()
  7. {
  8. return 0;
  9. }
  10.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:33: error: the 'constexpr' specifier cannot be used in a function declaration that is not a definition
prog.cpp:6:29: error: a constexpr function cannot be defined outside of its class
stdout
Standard output is empty