---------------
Christof Meerwald@freec++.prog

home
> prog
>> freecpp
>>> arrow operator return

translate to German (by SYSTRAN)

Arrow Operator Return Type

See 13.5 "Overloaded operators" [over.oper], paragraph 6, of the C++ standard.

Also see Relaxing the rules for the return type of operator-> @ corfield.org.

> arrow_operator_return.cpp:

template<class T>
struct C
{
  float operator->();
};

C<int> c;


int main()
{
  return 0;
}
---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.4, cmeerw.org/prog/freecpp/arrow_operator_return.html
Last modified: Mon Sep 03 18:20:50 2018
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org