instead of makeany you can simply use the any ctor template  which feels like it looks less clumsy  makeany is only really useful if you need to explicitly give it is template argument  see e  a  c a e c a  ed c c bb d  improve documentation 