Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2003-01-27 16:45:45


"Fernando Cacciola" <fernando_cacciola_at_[hidden]> wrote in message
news:OE22PDH8qHNwK39FMZW0000274c_at_hotmail.com...
> I've fixed Optional for MSV6.0
> Once the regression tests are updated, I'll see if I can fix it for the
> other compilers too.
>
I'm looking at the new regression tests. VC6.0 finally works, but not so
VC7.0
I don't have VC >=7.0, so I'm trying to guess the problem.

Could someone with access to vc7.0/7.1 try the following and report the
compiler output? My guess is that vc7.0 (at least) still has problems when
both non-template and (explicit?) template copy-ctors are present.

template<class T>
struct X
{
  X ( X const& ) ;
  template<class U> X ( X<U> const& ) ;
} ;

template<class T>
struct Y
{
  Y ( Y const& ) ;
  explicit template<class U> Y ( Y<U> const& ) ;
} ;

void eat ( X ) ;
void eat ( Y ) ;

int main()
{
  X<int> x1 ;
  X<int> x2 = x1;
  eat(x1);

  Y<int> y1 ;
  Y<int> y2 = y1;
  eat(y1);
}

TIA,

--
Fernando Cacciola

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