From 59115614ee941fe801416aca2f8f380065bdc2b7 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 1 Jun 2013 00:57:21 +0300 Subject: [PATCH] Pull the SetFlag class from mspcore --- source/libr2c2/train.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/source/libr2c2/train.cpp b/source/libr2c2/train.cpp index 7de6236..d78e627 100644 --- a/source/libr2c2/train.cpp +++ b/source/libr2c2/train.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -23,19 +24,6 @@ using namespace std; using namespace Msp; -namespace { - -struct SetFlag -{ - bool &flag; - - SetFlag(bool &f): flag(f) { flag = true; } - ~SetFlag() { flag = false; } -}; - -} - - namespace R2C2 { Train::Train(Layout &l, const VehicleType &t, unsigned a, const string &p): -- 2.43.0