tag:blogger.com,1999:blog-2915984721603110573.post8300544977840305005..comments2009-02-15T23:50:18.024-08:00Comments on SoftwareDesignStuff: Koenig lookup...wha?Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2915984721603110573.post-55254243814981965722009-02-15T23:50:00.000-08:002009-02-15T23:50:00.000-08:00You're quite right. Thanks for the correction. I j...You're quite right. Thanks for the correction. I just addressed it.noehttps://www.blogger.com/profile/06169378637899325525noreply@blogger.comtag:blogger.com,1999:blog-2915984721603110573.post-82553599322161662602009-02-14T07:38:00.000-08:002009-02-14T07:38:00.000-08:00Should the first line of code be like this:std::co...Should the first line of code be like this:<BR/><BR/>std::cout.op<<(char*).op<<(std:endl);<BR/><BR/>or like this:<BR/><BR/>std::op<<(std::cout, char*).op<<(std::endl);<BR/><BR/>The first one would seem to be "obvious" and not rely on Koenig lookup. It would only use the magic of C++ operator overloading and require that ostream defined an operator<< inside the class rather than outside. The latter snippet is less obvious and does rely on Koenig lookup to work.Richard Quirkhttps://www.blogger.com/profile/16290285494071462742noreply@blogger.com