A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
empty a C->C++ wrapper that will soon die
[simgrid.git]
/
src
/
xbt
/
config.cpp
diff --git
a/src/xbt/config.cpp
b/src/xbt/config.cpp
index
16c47dc
..
9e896f3
100644
(file)
--- a/
src/xbt/config.cpp
+++ b/
src/xbt/config.cpp
@@
-263,7
+263,7
@@
private:
bool warn_for_aliases = true;
public:
bool warn_for_aliases = true;
public:
- Config()
= default
;
+ Config();
~Config();
// No copy:
~Config();
// No copy:
@@
-297,6
+297,10
@@
protected:
ConfigurationElement* getDictElement(const char* name);
};
ConfigurationElement* getDictElement(const char* name);
};
+Config::Config()
+{
+ atexit(&sg_config_finalize);
+}
Config::~Config()
{
XBT_DEBUG("Frees cfg set %p", this);
Config::~Config()
{
XBT_DEBUG("Frees cfg set %p", this);
@@
-420,7
+424,6
@@
template XBT_PUBLIC void declareFlag(const char* name, const char* description,
xbt_cfg_t xbt_cfg_new()
{
xbt_cfg_t xbt_cfg_new()
{
- atexit(&sg_config_finalize);
return new simgrid::config::Config();
}
void xbt_cfg_free(xbt_cfg_t * cfg) { delete *cfg; }
return new simgrid::config::Config();
}
void xbt_cfg_free(xbt_cfg_t * cfg) { delete *cfg; }