prefer std::variant over boost::variant
migrate remaining use of boost::variant to std::variant, and remove clang-6 compatibility hack.
Edited by Marco Cattaneo
migrate remaining use of boost::variant to std::variant, and remove clang-6 compatibility hack.