Guest User

Untitled

a guest
Dec 15th, 2011
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1.     FooRef::FooRef( const FooRef & other )
  2.         :m_container(std::move(other.m_container))
  3.         //:m_container(uptr( new ShapeContainer(other.m_container)) )
  4.     {
  5.    
  6.     }
  7.  
  8. 1>------ Build started: Project: khipu, Configuration: Debug x64 ------
  9. 1>  shape.cpp
  10. 1>src\shape.cpp(91): error C2248: 'std::unique_ptr<_Ty>::unique_ptr' : cannot access private member declared in class 'std::unique_ptr<_Ty>'
  11. 1>          with
  12. 1>          [
  13. 1>              _Ty=ShapeContainer
  14. 1>          ]
  15. 1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\memory(2347) : see declaration of 'std::unique_ptr<_Ty>::unique_ptr'
  16. 1>          with
  17. 1>          [
  18. 1>              _Ty=ShapeContainer
  19. 1>          ]
  20. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment