From 45d51c29af5b73fcfc72aa07960b7fa5ebd4d68d Mon Sep 17 00:00:00 2001 From: ataymano <41013086+ataymano@users.noreply.github.com> Date: Wed, 23 Jan 2019 21:18:03 -0500 Subject: [PATCH] build fix (#36) --- rlclientlib/live_model.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rlclientlib/live_model.cc b/rlclientlib/live_model.cc index 9f055ed3a3f..479887412e7 100644 --- a/rlclientlib/live_model.cc +++ b/rlclientlib/live_model.cc @@ -34,8 +34,9 @@ namespace reinforcement_learning live_model::~live_model() = default; live_model& live_model::operator=(live_model&& other) { - std::swap(_pimpl, other._pimpl); - _initialized = other._initialized; + std::swap(_pimpl, other._pimpl); + _initialized = other._initialized; + return *this; } int live_model::init(api_status* status) { if (_initialized)