
10 Mar
2005
10 Mar
'05
10:36 p.m.
Rob Stewart wrote:
Let's review. There are several things one needs to do with a basic_character:
- return it from a function - test it to determine success - compare it to a char/wchar_t
Have I missed anything?
Given those requirements the class needs:
- value semantics - safe-bool conversion - comparisons with char/wchar_t
Therefore, I think this will work:
I just verified that Borland 5.6.4 complains of ambiguity when safe-bool and char conversions are combined. The same is true with a void* conversion instead of safe-bool. It works with a bool conversion instead of safe-bool, but this makes me a bit nervous. I'll have to wait until I have a bunch of filters implemented. Jonathan