----- Original Message -----
From: "Vincent Finn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 22, 2002 1:38 PM
Subject: [boost] Re: Formal Review Request: class optional<>


> And now the question
> can this be used with VC6 ?
>
Yes :-))
I've uploaded the new version which compiles and runs properly with VC6.0

NOTE: I've found when running the test that VC6.0 creates a temporary copy
in the following situation:

void foo()
{
  MyStruct v = 2;
  optional<MyStruct> opt(v);
  (*opt == v ) ; // A temporary copy of the value inside 'opt' is created
here!
}

The weird thing is that (*opt) is a proxy with a 'operator T const&() const'
and this operator *is* called -as can be seen with the debugger- but only to
create the temporary that is passed to operator ==

Anyway, with a small twist of the test it now passes with VC6.0

Fernando Cacciola

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to