array_fail_wp_wpa_a.cpp 326 B

12345678910111213141516171819
  1. //
  2. // Copyright (c) 2012 Peter Dimov
  3. //
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. #include <boost/weak_ptr.hpp>
  9. struct X
  10. {
  11. };
  12. int main()
  13. {
  14. boost::weak_ptr<X> px;
  15. boost::weak_ptr<X[]> px2; px2 = px;
  16. }