
15 Jun
2005
15 Jun
'05
3:49 p.m.
I'm trying to find a way to see if a given object is convertible to
std::string, but with certain restrictions. Normally, is_convertible<> would
be fine, but in this case it doesn't work for my needs.
Here's the situation in more detail. I've got a class Foo with a string
conversion operator:
class Foo { public: operator std::string () const; };
I want some kind of is_convertible