Boost logo

Boost :

From: Darin Adler (darin_at_[hidden])
Date: 1999-12-09 12:03:16


> Oh, so that's what "Koenig Lookup" is. I'd wondered... (You see the phrase
> used a lot, but I'd never found a definition!)

If you want to understand this at a deeper level, you should buy Herb
Sutter's new book, Exceptional C++, and read pages 119-140 "Name Lookup,
Namespaces, and the Interface Principle". Herb covers these issues in
detail. His discussion makes it clear why the abs function that takes a
rational as a parameter belongs in the same namespace as the rational class,
and also why it does qualify as "part of" the rational class even though
it's not a member or friend.

    -- Darin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk