From: Rusty B. <ho...@sb...> - 2003-09-05 08:29:54
|
> > So I *will* make that API change in ClassLoader (there are only 2 or > > 3 places), "and *then* it'll be ready for qub." > > This is done. well, quadruple backflip bozo award for me this evening: void f1(QString &s) { } void f2(const QString &s) { } int main() { f1(QString()); // doesn't compile!? f2(QString()); // does compile QString s; f1(s); // does compile, of course return 0; } So I was looking in the C++ ARM to figure out whether that's correct, and in my copy, on page 308, someone has scribbled the words "RUSTY YOU ARE A BOZO" in handwriting which is remarkably similar to mine. Very strange. But I did find on page 146 the bit which proves I'm not a *total* bozo: "In early versions of C++ where temporaries were allowed as initializers for non-const references..." Ha ha ha, and on page 155: "Naturally, this feature will be faded out of implementations slowly..." Anyway, I guess I'll be fixing tonight's changes tomorrow... --Rusty |