Jelajahi Sumber

At several places in the ptr_container tests, we have the following pattern:

void f(const std::auto_ptr<int> &); void g() {

f(std::auto_ptr<int>(new int(5)));

}

This is code is ill-formed in C++98/03, because the compiler is
required to check there there exits a copy constructor that would be
able to make a copy of the auto_ptr before binding it to a reference,
even if that copy won't actually be made. Not all compilers diagnose
this error, but Clang and EDG in strict mode do diagnose the problem. 

Fixes #4174.


[SVN r61718]
Douglas Gregor 16 tahun lalu
induk
melakukan
02d25790db
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      libs/ptr_container

+ 1 - 1
libs/ptr_container

@@ -1 +1 @@
-Subproject commit e04da37f12e53d76cb82fae340536d14b7c6005c
+Subproject commit eca902e71690b4686b6c51255964b19bc8e5f2c7

粤ICP备19079148号