INE5426.Compiladores Template A great guide Exemplo Void template specialization Doc Exemplo Polymorphic variables Boost::variant Doc StackOverflow Exemplo Extends Boost::variant Exemplo Exemplo2 Exemplo3 Indentifying variant objects Boost::static_visitor StackOverflow Exemplo 1 Exemplo 2 StackOverflow 2 ###Limiting template argument's type StackOverflow Boost::multivisitors Exemplo 1 Using a string for identify a type StackOverflow Exemplo Exemplo 2 Implicit inicialization by default constructor StackOverflow StackOverflow