• DocumentCode
    1691340
  • Title

    Concepts as Syntactic Sugar

  • Author

    David, Valentin ; Haveraaen, Magne

  • Author_Institution
    Institutt for Informatikk, Universitetet i Bergen, Bergen, Norway
  • fYear
    2009
  • Firstpage
    147
  • Lastpage
    156
  • Abstract
    The coming standard for C++ will contain language extensions. It can be expected that there will be some years between the release of the new standard and the time when most compilers will be compliant, like it happened for the 1998 standard. Concepts are an extension proposed for the new standard. We show how we can translate ConceptC++ code into pure C++03 using the C++ template mechanism. Such a translation tool could be used for example to port software written using a ConceptC++ compiler to architectures having only older compilers. Or a library written using concepts could be used by a project written in pure C++. The goal of this transformation is not to provide all capabilities of ConceptC++, but with restrictions we can afford, to be as simple as possible.
  • Keywords
    C++ language; program compilers; C++03; ConceptC++ code; ConceptC++ compiler; code translation tool; Code standards; Computer architecture; Concrete; Dynamic programming; Object oriented programming; Software libraries; Software tools; Writing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Source Code Analysis and Manipulation, 2009. SCAM '09. Ninth IEEE International Working Conference on
  • Conference_Location
    Edmonton, AB
  • Print_ISBN
    978-0-7695-3793-1
  • Type

    conf

  • DOI
    10.1109/SCAM.2009.26
  • Filename
    5279923