Implementation of multimethods in C++11.