
2 Sep
2009
2 Sep
'09
9:16 a.m.
Thanks for all contributions. It works very fine now. 1. the key is the use of the ... argument instead of a template parameter 2. there is no difference between using a factory function and using a static reference to a value of the type -> I prefer the static reference 3. there is no difference between using pass/fail and return char or char[2] but pass/fail is easier to read -> I keep it
With apologies for not keeping up with discussion: there is also boost/type_traits/detail/yes_no_type.hpp that defines a yes_type and a no_type along these lines. John.