An extension to the subtype relationship in C++ implemented with template metaprogramming

  • Authors:
  • István Zólyomi;Zoltán Porkoláb;Tamás Kozsik

  • Affiliations:
  • Department of Computer Science, Eötvös Loránd University, Pázmány Péter sétány 1/D H-1117 Budapest, Hungary;Department of Computer Science, Eötvös Loránd University, Pázmány Péter sétány 1/D H-1117 Budapest, Hungary;Department of Computer Science, Eötvös Loránd University, Pázmány Péter sétány 1/D H-1117 Budapest, Hungary

  • Venue:
  • Proceedings of the 2nd international conference on Generative programming and component engineering
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Families of independent classes, where each class represents a separate, orthogonal concern are highly attractive for implementing collaboration-based design. However, required subtype relationship between such families cannot be expressed in many programming languages. This paper presents a framework to handle collaborating groups of classes using template metaprogramming based on standard C++ features in the style of Loki::Typelist. Our solution provides tailor-made implicit conversion rules between appropriate groups, inclusion polymorphism and a tool for dynamic binding.