I get a weird problem when I include winsock2.h before my own util.h,
which defines some general (templated) utility functions in it's own
namespace. The compiler (embedded visual C++) gives me a few syntax
errors on my util.h file when I include winsock2.h first. However, when
I include them in the other order (so first util.h, then winsock.h),
everything is fine. I am most puzzled. Is there some issue with
winsock2.h? Actually, it behaves the same way with winsock.h. I can
hardly believe there's a quirk in a header as often used as winsock,
but the error can't really be in my own code, since it's really simple,
clear code, which works fine in other circumstances. Any ideas?
regards Mark
NB: if this is not the correct newsgroup for this question, feel free
to boot me to the correct one.