Another C++11 alternate function syntax test
This commit is contained in:
parent
d851be2b7f
commit
f9fbaa5cb8
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,8 @@ struct SomeStruct {
|
||||||
auto addAlternateConstNoExcept(int x, int y) const noexcept -> int;
|
auto addAlternateConstNoExcept(int x, int y) const noexcept -> int;
|
||||||
auto addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int;
|
auto addAlternateMemberPtrParm(int x, int (SomeStruct::*mp)(int, int)) -> int;
|
||||||
auto addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int;
|
auto addAlternateMemberPtrConstParm(int x, int (SomeStruct::*mp)(int, int) const) const -> int;
|
||||||
|
|
||||||
|
virtual auto addFinal(int x, int y) const noexcept -> int final { return x + y; }
|
||||||
};
|
};
|
||||||
|
|
||||||
int SomeStruct::addNormal(int x, int y) { return x + y; }
|
int SomeStruct::addNormal(int x, int y) { return x + y; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue