1 2 3 4 5 6 7 8
const Foo & Foo::operator ==(Foo& me){ ::sockaddr* ptr = (::sockaddr*)&host; return me; } MyType& MyClass::myMethode() { const MyType& t = getSomewhere(); }