This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Simplifing tuples


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]