Der nächste Event der C++ Usergroup ist diesmal ein interessanter Vortrag von Prof. Peter Sommerlad:
"Compile-time computation in C++14" Abstract (English)
While in the past C++ provided compile-time computation only very clumsily using templates with value parameters, C++11 introduced the constexpr keyword and allows functions and constants to be computed at compile time. It even introduced a new category of types 'Literal Types' that can be used in such compile-time computations. C++14 further relaxed the restrictions on constexpr functions to allow all reasonable statements that make sense at compile time. As long as at compile-time the computation path of a function remains within these limitations regular C++ can be used in constexpr function. However, when exploring/exploiting the compile-time computation features, one will recognize there are limitations and compile-time impacts can be really severe.
The tutorial covers many kinds of compile-time computations available in C++14, from constexpr functions and constants, literal types, variable templates, up to variadic templates using std::integer_sequence for string processing. It also gives a glimpse of the potential future standardized features, like user-defined-literal template operators for string literals. The tutorial also shows, where C++14 still has limitations in supporting compile-time computations and what you might need to do, to sidestep them.
"Compile-time computation in C++14" Abstract (English)
While in the past C++ provided compile-time computation only very clumsily using templates with value parameters, C++11 introduced the constexpr keyword and allows functions and constants to be computed at compile time. It even introduced a new category of types 'Literal Types' that can be used in such compile-time computations. C++14 further relaxed the restrictions on constexpr functions to allow all reasonable statements that make sense at compile time. As long as at compile-time the computation path of a function remains within these limitations regular C++ can be used in constexpr function. However, when exploring/exploiting the compile-time computation features, one will recognize there are limitations and compile-time impacts can be really severe.
The tutorial covers many kinds of compile-time computations available in C++14, from constexpr functions and constants, literal types, variable templates, up to variadic templates using std::integer_sequence for string processing. It also gives a glimpse of the potential future standardized features, like user-defined-literal template operators for string literals. The tutorial also shows, where C++14 still has limitations in supporting compile-time computations and what you might need to do, to sidestep them.
Agenda
- Vortrag: "Compile-time computation in C++14" (Deutsch|English)
- Small und Smart Talk beim Apero
Ort
Datum
Es sind alle herzlich Willkommen die gerne mit C++ programmieren und bereit sind sich auch in der Freizeit mit Softwareentwicklung und C++ zu beschäftigen
Anmeldung
Erfolgt über die Veranstaltung unserer Xing Gruppe C++ Usergroup Zentralschweiz, über meetup.com oder über das Kontaktformular rechts.Wir freuen uns auf dich.