From 0021c42186d334e4b046b2d8c7a45a454773f46c Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Fri, 25 Jan 2002 13:54:07 +0000 Subject: [PATCH] Minor technical detail added [SVN r12499] --- example/delay.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/example/delay.cpp b/example/delay.cpp index b82d059..8d5e4e2 100644 --- a/example/delay.cpp +++ b/example/delay.cpp @@ -17,6 +17,12 @@ // The time complexity of DELAY(N) is O(pow(2,N)). // // Handy when recompiles are too fast to take a coffee break. :) +// +// Template metaprogramming can be used for implementing similar +// delays. Unfortunately template instantiation consumes memory, +// therefore compilers usually fail to fully compile long template +// based delays, because they run out of memory. This macro takes +// only small (O(N)) amount of memory to preprocess. #ifndef DELAY_MAX #define DELAY_MAX 16