Hi

> I've just managed to get a copy of it. Thanks for the suggestion, 
> it's a great book.

It is! Taught me so much, changed my career, etc...

I'm quite proud of my signed copy and I've met Nico a couple of times. 


> I solved my problem using an iterator to keep track of the active 
> item in the list. The main problem now is that after including 
> several stl headers, I'm getting a ton of warnings in VC 6.0. 
> Unfortunately, at this time, I can't switch to VC 7.x.

That's easily fixed. Post the following code into a file 
called "disable4786.h" and include it above #include <list> in the 
files that are generating the error along with the following pragma:

#include <disable4786.h>
#pragma warning ( disable : 4018 4100 4211 4245 4511 4146)

-------------------- code starts -----------------------
#pragma warning(disable:4786)

//
// From Paul Hollingsworth, contributed to boost.org distribution list
// - Added here by Phil Nash 31/10/2001
//
// http://support.microsoft.com/support/kb/articles/Q167/3/55.ASP
// states that yes, it's a compiler bug that #pragma warning(disable: 
4786)
// doesn't always work.
// They don't, however, list a workaround.
// I found that, very strangely, #including <iostream> made the
// remaining 4786 warnings go away!
// Of course, #including <iostream> is inefficient and
// slows compilation - so I whittled away most of what's in
// <iostream> and discovered that the "active ingredient" in <iostream>
// appears to be a declaration of a static class, complete with
// default constructor.
// For some reason, this works around the bug!
// Why does this work? Beats me, ask those smart guys at MS who wrote 
the
// compiler.

#ifndef MSVC6_4786WORKAROUND
#define MSVC6_4786WORKAROUND

class msVC6_4786WorkAround
{
public:
        msVC6_4786WorkAround() {}
};

static msVC6_4786WorkAround
        WowIWonderWhatCrapCodeMustBeInTheCompilerToMakeThisWorkaroundWor
k;

#endif // MSVC6_4786WORKAROUND

-------------------- code ends -----------------------

Regards
Paul

Paul Grenyer
Email: [EMAIL PROTECTED]
Web: http://www.paulgrenyer.co.uk

Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn/?
Version 0.3.0 beta now available for download.




Reply via email to