Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190825 (experimental)

Options
Warnings
Boost 1.71.0
C++17
no pedantic

Author

anonymous

over 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/gcc-head/include -std=c++17
prog.cc: In member function 'bool A::isOverriden() const':
prog.cc:8:50: warning: converting from 'void (A::)() const' to 'void*' [-Wpmf-conversions]
    8 |     return reinterpret_cast<void*>(this->*(&A::f)) == reinterpret_cast<void*>(&A::f);
      |                                                  ^
prog.cc:8:84: warning: converting from 'void (A::*)() const' to 'void*' [-Wpmf-conversions]
    8 |     return reinterpret_cast<void*>(this->*(&A::f)) == reinterpret_cast<void*>(&A::f);
      |                                                                                    ^
b.isOverriden() = 0
c.isOverriden() = 1
Exit Code:
0