Tag Archive: template metaprogramming

Jul 25

Table-driven development, meet C++0x

Last week, I blogged about table-driven development without creating relocations in memory. One of the comments I received indicated that the code was hard to read — I concurred, of course, as it is generated code. Then Olivier looked at it and decided to have a go at making it entirely generated by the compiler, …

Continue reading »

Jul 21

Initialising an array with C++0x using constexpr and variadic templates

When I wrote the blog on improving QString further, I said: If you can, use the following C++0x expression, which is read-only and sharable: That above actually does work and does produce a read-only and sharable QStringData containing the UTF-16 “Hello, World\n” string. However, what I didn’t say (because I hadn’t realised at the time) …

Continue reading »

Page optimized by WP Minify WordPress Plugin