Boost.Variant looks like generic implementation of visitor pattern to me.

Definitely. Thank you, it's what I need.

Regards,
Rodrigo