ldionne / dyno

Runtime polymorphism done right
Boost Software License 1.0
975 stars 43 forks source link

Add examples of passing custom concept maps to poly #25

Open ldionne opened 7 years ago

ldionne commented 7 years ago

poly has a constructor that allows passing a custom concept map. This can be used like

if (condition) {
  dyno::poly<Concept> poly{x, concept_map_1};
} else {
  dyno::poly<Concept> poly{x, concept_map_2};
}

We should find a nice use case and document this.