Linux bug fixes, small controller fix.

This commit is contained in:
Adam Ierymenko 2016-06-17 00:21:58 +00:00
parent 601c51b351
commit 37afa876a7
6 changed files with 22 additions and 19 deletions

View file

@ -32,6 +32,7 @@ public:
ManagedRoute(const ManagedRoute &r)
{
_applied = false;
*this = r;
}
@ -40,7 +41,8 @@ public:
if ((!_applied)&&(!r._applied)) {
memcpy(this,&r,sizeof(ManagedRoute)); // InetAddress is memcpy'able
} else {
throw std::runtime_error("Applied ManagedRoute is non-copyable!");
fprintf(stderr,"Applied ManagedRoute isn't copyable!\n");
abort();
}
return *this;
}