Line data Source code
1 : #include "Dynamic/Env/Position.hpp" 2 : 3 : #include <new> 4 : 5 : using namespace std; 6 : using namespace Dynamic::Env; 7 : 8 0 : Position::Position(Lane &lane_, Length offset_): 9 0 : lane(lane_), offset(offset_) {} 10 : 11 0 : Position &Position::operator=(const Position &p) { 12 0 : new(this) Position{p.lane, p.offset}; 13 : 14 0 : return *this; 15 : }