Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2004-05-09 15:10:08


I'd appreciate if someone on the list could try the
following in VC7.1 and report the results:

template<typename T>
struct A
{
  template<typename Q>
  void operator()(const Q&){}
};

template<typename T>
struct B: private A<T>
{
  using A<T>::operator();
};

int main()
{
  B<char> b;
  b(3);
  return 0;
}

The regression tests for multi_index seem to indicate
that VC7.1 is having trouble with this kind of construct
and I'd like to make sure before applying any fix.
Curiously enough, this problem also shows up in GCC
for versions under 3.4, as confirmed in

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9810

Thanks,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk