Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-03-31 13:15:26

It seems GCC 3.3.3 doesn't like to do SFINAE based on the validity of

  int f(...);

  template <class T>
  int f(T, int(*)[T::value] = 0);

  int x = f(1); // error: `int' is not an aggregate type

The same applies when eliminating partial specializations via SFINAE.
Has anyone got an alternative approach?

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at