Advertisement
Guest User

Untitled

a guest
May 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include <vector>
  2. #include <memory>
  3. #include "Vehicle.h"
  4. #include "Motorcycle.h"
  5. #include "Car.h"
  6. #include "Truck.h"
  7. #ifndef VECTOR_H
  8. #define VECTOR_H
  9.  
  10.  
  11. class Vector
  12. {
  13. std::vector<std::unique_ptr<Vehicle>> content; //<- chyba tu wyrzuca blad
  14.  
  15. public:
  16. Vector();
  17. virtual ~Vector();
  18. void push(std::unique_ptr<Vehicle>);
  19. void pop(int);
  20. void showAll(std::ostream&);
  21. int getSize();
  22. };
  23.  
  24. #endif // VECTOR_H
  25.  
  26. /*bΕ‚Δ…d:
  27. error: use of deleted function β€˜std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = Vehicle; _Dp = std::default_delete<Vehicle>]’|
  28. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement