|  |  | Ok, let's take this a step further:
template<typename T1, typename T2>
void swap(T1& x, T2& y)
{
    T1 tmp = x;
    x = y;
    y = tmp;
}
  And suppose we have:
class B;
class A
{
 public:
    A& operator=(const B&);
}
class B
{
 public:
    B& operator=(const A&);
}
int main()
{
    A a;
    B b;
    swap(a,b);
}
-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
 |  |