From 3335ea7e43f555db9043b8b12da22377f6640196 Mon Sep 17 00:00:00 2001 From: buslov Date: Thu, 16 Nov 2017 21:11:46 +0300 Subject: [PATCH] Fix V599 warning from PVS-Studio Static Analyzer The virtual destructor is not present, although the 'CartPole' class contains virtual functions. --- include/experiments.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/experiments.h b/include/experiments.h index 67261c8..b85d3f0 100644 --- a/include/experiments.h +++ b/include/experiments.h @@ -59,6 +59,7 @@ int pole2_epoch(Population *pop,int generation,char *filename,bool velocity, Car class CartPole { public: CartPole(bool randomize,bool velocity); + virtual ~CartPole() {} virtual void simplifyTask(); virtual void nextTask(); virtual double evalNet(Network *net,int thresh);