I need to compare two variables of type boost::variant
and I want to compare the values inside the variant for equality.
What would be the best way to implement this?
My variant looks like this:
typedef boost::variant<int, float, double, long, bool, std::string, boost::posix_time::ptime> variant;