diff --git a/cpp/qlearn.hpp b/cpp/qlearn.hpp index 6c96af4..cf351d1 100644 --- a/cpp/qlearn.hpp +++ b/cpp/qlearn.hpp @@ -338,7 +338,7 @@ namespace tinymind { typedef typename EnvironmentType::EnvironmentStateType StateType; typedef typename EnvironmentType::EnvironmentActionType ActionType; typedef typename EnvironmentType::EnvironmentValueType ValueType; - + static ActionType selectBestActionForState(const StateType state, ActionType const* const actions, const size_t numberOfValidActions, const QLearnerQValuePolicy& qValuePolicy) { ActionType bestAction; @@ -527,10 +527,6 @@ namespace tinymind { } } - void * operator new(size_t, void *p) - { - return p; - } private: void copyNetworkWeights() { @@ -657,11 +653,6 @@ namespace tinymind { this->mState = experience.newState; } - - void * operator new(size_t, void *p) - { - return p; - } private: // Private methods ValueType calculateFutureQValue(const StateType state)