fork(6) download
  1. #include <iostream>
  2. class AE {
  3. // ...
  4. public:
  5. static const int c6 = 7;
  6. static const int c7 = 31;
  7. };
  8. const int AE::c7; // definition
  9. int f()
  10. {
  11. const int* p1 = &AE::c6; // error: c6 not an lvalue
  12. const int* p2 = &AE::c7; // ok
  13. // ...
  14. }
  15.  
  16. int main(){
  17.  
  18. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty