File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2206,11 +2206,14 @@ namespace detail
2206
2206
: m_file(impl.fullPath(std::move(file)))
2207
2207
, m_IOName(std::to_string(impl.nameCounter++))
2208
2208
, m_ADIOS(impl.m_ADIOS)
2209
- , m_IO(impl.m_ADIOS.DeclareIO(m_IOName))
2210
- , m_mode(impl.adios2AccessMode(m_file))
2211
2209
, m_impl(&impl)
2212
2210
, m_engineType(impl.m_engineType)
2213
2211
{
2212
+ // Declaring these members in the constructor body to avoid
2213
+ // initialization order hazards. Need the IO_ prefix since in some
2214
+ // situation there seems to be trouble with number-only IO names
2215
+ m_IO = impl.m_ADIOS .DeclareIO (" IO_" + m_IOName);
2216
+ m_mode = impl.adios2AccessMode (m_file);
2214
2217
if (!m_IO)
2215
2218
{
2216
2219
throw std::runtime_error (
You can’t perform that action at this time.
0 commit comments