some quirks of Koenig lookup rule
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 5 articles for 1.031 sec
Re: some quirks of Koenig lookup rule?     

Group: comp.lang.c++.moderated · Group Profile · Search for some quirks of Koenig lookup rule in comp.lang.c++.moderated
Author: Thomas Maeder
Date: May 6, 2008 11:40

...@gmail.com> writes: Can someone explain this peculiar behavior of MSVC & GCC: Yes. NB: Your question isn't related to argument dependant (aka Koenig) lookup. It's a basic overloading problem (if these exist at all). code below, if you uncomment that line (which is totally unrelated to '...
Show full article (1.35Kb) · Show article thread
Re: some quirks of Koenig lookup rule?     

Group: comp.lang.c++.moderated · Group Profile · Search for some quirks of Koenig lookup rule in comp.lang.c++.moderated
Author: dizzy
Date: May 7, 2008 09:50

Thomas Maeder wrote: void AAA::dph::f() { std::cout << *this; This statement causes the compiler to look for operator<<()s in a sequence of scopes. The first scope considered is the struct dph, which doesn't have an operator<<() member. Minor correction, woldn't actually look it up in std::cout's as a member and not in struct dph? (since dph is a second ...
Show full article (0.58Kb) · Show article thread
Re: some quirks of Koenig lookup rule?     

Group: comp.lang.c++.moderated · Group Profile · Search for some quirks of Koenig lookup rule in comp.lang.c++.moderated
Author: nickf3
Date: May 6, 2008 11:14

On May 6, 10:24 am, Michael Kilburn <crusader.m...@gmail.com> wrote: Hi Can someone explain this peculiar behavior of MSVC & GCC: code below, if you uncomment that line (which is totally unrelated to 'dph' class), will stop compiling with usual bizzare C++ error [code] #include <iostream> namespace AAA { struct gad { }; //std::...
Show full article (1.09Kb) · Show article thread
Re: some quirks of Koenig lookup rule?     

Group: comp.lang.c++.moderated · Group Profile · Search for some quirks of Koenig lookup rule in comp.lang.c++.moderated
Author: Bo Persson
Date: May 6, 2008 11:14

Michael Kilburn wrote: Hi Can someone explain this peculiar behavior of MSVC & GCC: code below, if you uncomment that line (which is totally unrelated to 'dph' class), will stop compiling with usual bizzare C++ error [code] #include <iostream> namespace AAA { struct gad { }; //std::ostream& operator<<(std::ostream& s, gad const&); ...
Show full article (1.10Kb) · Show article thread
some quirks of Koenig lookup rule?     

Group: comp.lang.c++.moderated · Group Profile · Search for some quirks of Koenig lookup rule in comp.lang.c++.moderated
Author: Michael Kilburn
Date: May 6, 2008 06:30

Hi Can someone explain this peculiar behavior of MSVC & GCC: code below, if you uncomment that line (which is totally unrelated to 'dph' class), will stop compiling with usual bizzare C++ error [code] #include <iostream> namespace AAA { struct gad { }; //std::ostream& operator<<(std::ostream& s, gad const&); struct dph { void f();...
Show full article (0.63Kb)