Skip to content
Snippets Groups Projects
Commit 6c96165c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Use std::terminate instead of std::exit to help debugging

parent 225e6496
No related branches found
No related tags found
1 merge request!11Feature/mpi
...@@ -43,7 +43,7 @@ class ItemValue ...@@ -43,7 +43,7 @@ class ItemValue
public: public:
PASTIS_FORCEINLINE PASTIS_FORCEINLINE
const bool& isBuilt() const bool isBuilt() const
{ {
return m_is_built; return m_is_built;
} }
...@@ -104,13 +104,13 @@ class ItemValue ...@@ -104,13 +104,13 @@ class ItemValue
if (m_values.size() != values.size()) { if (m_values.size() != values.size()) {
perr() << "Cannot assign an array of values of a different size\n"; perr() << "Cannot assign an array of values of a different size\n";
std::exit(1); std::terminate();
} }
if (values.size() > 0) { if (values.size() > 0) {
if (not m_is_built) { if (not m_is_built) {
perr() << "Cannot assign array of values to a non-built ItemValue\n"; perr() << "Cannot assign array of values to a non-built ItemValue\n";
std::exit(1); std::terminate();
} }
m_values = values; m_values = values;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment