Boost logo

Boost :

From: Matthew Vogt (mattvogt_at_[hidden])
Date: 2005-03-09 18:20:56

> Suppose you write a filter which expect ASCII characters. You might want
> to
> perform arithmetic operations on characters, e.g.
> if (c >= 65 && c < 91)
> c += 32; // Convert to lowercase.

Surely this is something you would want to discourage?

> I'm not sure if the safe-bool conversion is worth all this trouble.
> Fortunately,
> it's not a majpr design change. I'll soon be writing lots of non-blocking
> filters, and I can try both versions.

Well, that's certainly the best way to know. I hope it works out.


  Matthew Vogt

Boost list run by bdawes at, gregod at, cpdaniel at, john at