Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 2000-01-28 00:12:18


Fair enough. Here's the result with g++ 2.96

set_test.cc:14: use of class template `template <_Key, _Compare,
_Alloc> class set' as expression

With the KAI 3.4b (EDG 2.41.2) it works fine.
With MIPSpro 7.3 it dies with or without the #include <set> :(

Here's the example I used (without the #include <set> everything
is happy).

#include <set>
#include <iostream>

namespace boost {
  struct foo { };
  inline void set(foo*,foo) {
    std::cout << "setting foo" << std::endl;
  }

}

template <class T>
inline void generic_foo(T* it, T t) {
  set(it,t);
}

int
main()
{
  boost::foo* x;
  generic_foo(x, *x);
  return 0;
}

Dave Abrahams writes:
> > I'm not totally sure what the standard says about this... from 3.3.7
> > I think that the function name is suppose to hide the class name.
> >
> > However, with g++ 2.91.66, for this code:
>
> <snip>
>
> I am loathe to make concessions for any one (non-conformant) compiler, but I
> am particularly reluctant to base any decisions on the behavior of such an
> outdated compiler. Please try your tests with gcc 2.95.2. It has certainly
> got some substantial C++ bugs, but is reputed to be very much advanced over
> 2.91.xx.
>
> Thanks,
> Dave
>
> ------------------------------------------------------------------------
> Get what you deserve with NextCard Visa! Rates as low as 2.9%
> Intro or 9.9% Fixed APR, online balance transfers, Rewards Points,
> no hidden fees, and much more! Get NextCard today and get the
> credit youdeserve! Apply now! Get your NextCard Visa at:
> http://click.egroups.com/1/912/1/_/9351/_/949034648/
>
> -- Talk to your group with your own voice!
> -- http://www.egroups.com/VoiceChatPage?listName=boost&m=1
>
>
>


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