Skip to content
Snippets Groups Projects
Commit e175fb70 authored by Wang, Ruonan's avatar Wang, Ruonan
Browse files

trying to fix a windows compile problem reported

parent 94b39f8c
No related branches found
No related tags found
1 merge request!292fixed a few problems of DataMan/ZeroMQ, and added a simple Transport:…
......@@ -134,8 +134,8 @@ void DataMan::ReadThread(std::shared_ptr<Transport> trans,
if (bytes > 0)
{
char data[bytes];
trans->Read(data, bytes);
std::vector<char> data(bytes);
trans->Read(data.data(), bytes);
std::string doid = jmsg.value("doid", "Unknown Data Object");
std::string var = jmsg.value("var", "Unknown Variable");
std::string dtype = jmsg.value("dtype", "Unknown Data Type");
......@@ -143,7 +143,7 @@ void DataMan::ReadThread(std::shared_ptr<Transport> trans,
jmsg.value("putshape", std::vector<size_t>());
if (m_CallBack)
{
m_CallBack(data, doid, var, dtype, putshape);
m_CallBack(data.data(), doid, var, dtype, putshape);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment