GCC 4.6 produces ambiguity errors despite the using directive in the class
declaration.
+ TrackAttachment::layout.add(*this);
}
BeamGate::~BeamGate()
{
}
BeamGate::~BeamGate()
{
+ TrackAttachment::layout.remove(*this);
}
BeamGate *BeamGate::clone(Layout *to_layout) const
{
}
BeamGate *BeamGate::clone(Layout *to_layout) const
{
- BeamGate *gate = new BeamGate(to_layout ? *to_layout : layout);
+ BeamGate *gate = new BeamGate(to_layout ? *to_layout : TrackAttachment::layout);
gate->set_position(position);
gate->set_rotation(rotation);
return gate;
gate->set_position(position);
gate->set_rotation(rotation);
return gate;
void BeamGate::update_attachment()
{
void BeamGate::update_attachment()
{
- attach_to_closest(100*layout.get_catalogue().get_gauge());
+ attach_to_closest(100*TrackAttachment::layout.get_catalogue().get_gauge());
-private:
- using TrackAttachment::layout;
-
-public:
BeamGate(Layout &);
virtual ~BeamGate();
BeamGate(Layout &);
virtual ~BeamGate();