T
t
What should the correct form of the const version of operator-> ?
Lippman does something like:
const Item_base* operator->() const
I have another book (Mark Joshi's C++ Design Patterns and Derivatives
Pricing) that adds a 3rd const keyword, so he would write the line of
code above as:
const Item_base* const operator->() const
Lippman does something like:
const Item_base* operator->() const
I have another book (Mark Joshi's C++ Design Patterns and Derivatives
Pricing) that adds a 3rd const keyword, so he would write the line of
code above as:
const Item_base* const operator->() const