Skip to content

Add <memory> header #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Street.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define STREET_H

#include "TrafficObject.h"
#include <memory>

// forward declaration to avoid include cycle
class Intersection;
Expand Down Expand Up @@ -29,4 +30,4 @@ class Street : public TrafficObject, public std::enable_shared_from_this<Street>
std::shared_ptr<Intersection> _interIn, _interOut; // intersections from which a vehicle can enter (one-way streets is always from 'in' to 'out')
};

#endif
#endif
3 changes: 2 additions & 1 deletion src/Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define VEHICLE_H

#include "TrafficObject.h"
#include <memory>

// forward declarations to avoid include cycle
class Street;
Expand Down Expand Up @@ -33,4 +34,4 @@ class Vehicle : public TrafficObject, public std::enable_shared_from_this<Vehicl
double _speed; // ego speed in m/s
};

#endif
#endif