fork download
  1. typedef unsigned datatype;
  2. struct myclass
  3. {
  4. datatype const* ptr; // zeiger auf einen datenbereich
  5. datatype const& normal_getter(int, int) const;
  6. datatype const& special_getter(int, int) const;
  7. datatype some_operation1(datatype const& (myclass::* getter)(int, int) const = &(myclass::normal_getter)) const;
  8. };
  9. int main()
  10. {
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:7:95: error: invalid use of non-static member function ‘const datatype& myclass::normal_getter(int, int) const’
     datatype some_operation1(datatype const& (myclass::* getter)(int, int) const = &(myclass::normal_getter)) const;
                                                                                               ^
stdout
Standard output is empty