Simplifing tuples

Gabriel Dos Reis gdr@cs.tamu.edu
Tue Oct 19 16:47:00 GMT 2004


On Tue, 19 Oct 2004, Giovanni Bajo wrote:

| Gabriel Dos Reis wrote:
|
|
| >> template<typename T, int N>
| >> void error()
| >> {
| >>   __builtin_static_assert(sizeof(T)>N, "type %qT too small", T);
| >> }
| >>
| >> int main()
| >> {
| >>   error<int, 2>();
| >
| > That requires execution.
|
|
| What do you mean? It is evaluated at compile time, and generates a compile-time
| diagnostic. Otherwise my whole mail would be totally nonsense.

You're right.  Sorry.
Too much heat ;-/

-- Gaby



More information about the Libstdc++ mailing list