[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: swap in stdlib?
From: |
schuelaw |
Subject: |
Re: swap in stdlib? |
Date: |
26 Feb 2006 18:30:16 -0800 |
User-agent: |
G2/0.2 |
Thanks for this. I'm beginning to understand a bit more. Just to
clarify (if you will), I notice that the original program that raised
this issue had an #include <iostream> at the top because the student
was using cout. If I remove that line, then the swap function becomes
unrecognized. So for some reason, iostream is prototyping swap either
directly or indirectly. Do you happen to know why iostream needs swap?
I think I can save face with my class by blaming it on iostream. :-)
Thanks for your help.