update example

This commit is contained in:
Neargye 2018-05-28 17:40:20 +05:00
parent b27bc04ca9
commit 744c8c8f43

View file

@ -40,16 +40,16 @@ struct SomeStruct {
void SomeMethod1(const int i) { void SomeMethod1(const int i) {
somefield = i; somefield = i;
std::cout << "No called!" << std::endl;
} }
int SomeMethod2() const { int SomeMethod2() const {
std::cout << "No called!" << std::endl;
return somefield; return somefield;
} }
}; };
void SomeMethod3() { std::cout << "No called!" << std::endl; } void SomeMethod3() {
std::cout << NAMEOF(SomeMethod3) << " no called!" << std::endl;
}
struct Long { struct Long {
struct LL { struct LL {
@ -124,8 +124,6 @@ int main() {
std::cout << e.what() << std::endl; // y should not be zero! std::cout << e.what() << std::endl; // y should not be zero!
} }
std::cout << NAMEOF(main) << " method entry" << std::endl; // main method entry
/* Remarks */ /* Remarks */
// Spaces and Tabs ignored // Spaces and Tabs ignored