chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eafdc8c
)
Add virtual destructor to class Global (in algs/stogo/) (#186)
author
Dave Trussel
<d.crucel@gmail.com>
Tue, 29 May 2018 06:44:47 +0000
(08:44 +0200)
committer
Julien Schueller
<schueller@phimeca.com>
Tue, 29 May 2018 06:44:47 +0000
(08:44 +0200)
Add virtual destructor to class Global, because it has virtual functions.
src/algs/stogo/global.h
patch
|
blob
|
history
diff --git
a/src/algs/stogo/global.h
b/src/algs/stogo/global.h
index 36c2b0e15c1713d64e0f661c7638f099d9b45394..ae07af2aee13881d56abd6eb6e3fb2231f20cb36 100644
(file)
--- a/
src/algs/stogo/global.h
+++ b/
src/algs/stogo/global.h
@@
-58,6
+58,9
@@
public:
}
Global(RTBox, Pobj, Pgrad, GlobalParams);
+
+ virtual ~Global(){};
+
// Global& operator=(const Global &);
void Search(int, RCRVector);