On Mon, 19 Jan 2009, Tim Kroeger wrote:
Please find attached the first version of "my part". I haven't tested it
because I had no idea how to do that. Well, at least it compiles. Perhaps it
is best that you guys implement your part now and then run one of the
examples on it, and in the case
Not a problem for me... for a while at Sandia we had a rule that all
constructors should be explicit. We followed it for a while then
it petered out but I do think it's a good idea. The exceptions
are when you really do want implicit conversion... but those are
usually pretty few
When trying to pass a NumericVector* to a function expecting a
NumericVector&, Brent Kraczek's compiler gave him this:
> Compiling C++ (in optimized mode) ex3.C...
> ex3.C: In function 'int main(int, char**)':
> ex3.C:159: error: invalid conversion from 'NumericVector*' to
> 'unsigned
> int'
>