Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <memory>
- #include "Vehicle.h"
- #include "Motorcycle.h"
- #include "Car.h"
- #include "Truck.h"
- #ifndef VECTOR_H
- #define VECTOR_H
- class Vector
- {
- std::vector<std::unique_ptr<Vehicle>> content; //<- chyba tu wyrzuca blad
- public:
- Vector();
- virtual ~Vector();
- void push(std::unique_ptr<Vehicle>);
- void pop(int);
- void showAll(std::ostream&);
- int getSize();
- };
- #endif // VECTOR_H
- /*bΕΔ d:
- 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>]β|
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement