From d0827b7829b96cab849f28eb57c8433f9236fdb2 Mon Sep 17 00:00:00 2001 From: Stefanus Du Toit Date: Wed, 30 Oct 2002 15:47:55 +0000 Subject: [PATCH] Added Evil C++ abstract --- events.xml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/events.xml b/events.xml index 9222908..6a13bbf 100755 --- a/events.xml +++ b/events.xml @@ -962,8 +962,30 @@ lent to you for the duration of this class.

Abusing template metaprogramming in C++ for fun and profit - No abstract available yet. - + +

Templates are a useful feature in C++ when it comes to writing + type-independent data structures and algorithms. Relatively soon + after their appearance it was realised that they could be used to + do much more than this. Essentially it is possible to write + certain programs in C++ that execute completely at compile + time rather than run time. Combined with constant-expression + optimisation this is an interesting twist on regular C++ + programming.

+

This talk will give a short overview of the features of + templates and then go on to describe how to "abuse" + templates to perform complex computations at compile time. The + speaker will present three programs of increasing complexity which + execute at compile time. First a factorial listing program, then a + prime listing program will be presented. Finally the talk will + conclude with the presentation of a Mandelbrot generator running + at compile time.

+ +

If you are interested in programming for the fun of it, the C++ + language or silly tricks to do with languages, this talk is for + you. No C++ knowledge should be necessary to enjoy this talk, but + programming experience will make it more worthwile for you.

+ +