
21 Feb
2008
21 Feb
'08
7:12 p.m.
AMDG Olaf wrote:
That's correct. If it contains a double the string value is empty.
The variant cannot contain a string that is not "NA"
struct available : public boost::static_visitor<bool> { bool operator()( const double&) const { return true; }
bool operator()( const string& lhs) const { assert(lhs == "NA");
return false; //??? } };
May this work? There is always a string - empty or holding "NA".
I don't quite understand. variant