socket.io-client-cpp
socket.io-client-cpp copied to clipboard
Parse Issue Xcode
When building in Xcode, build fails with a Parse Error:

The file is sio_client_impl.cpp, lines 282 and 496 respectively.
Error 1:
if(ec || m_con.expired())
{
if (ec != boost::asio::error::operation_aborted)
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl){};
return;
}
Error 2:
if(ec)LOG("ec:"<<ec.message()<<endl){};
It seems like the curly braces for the if blocks got messed up somewhere. I fixed it with the following solutions:
Soltuion 1:
if (ec != boost::asio::error::operation_aborted)
{
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl);
return;
}
Solution 2:
if(ec)
{
LOG("ec:"<<ec.message()<<endl);
}
If these are indeed an issue, I've got a branch to submit a PR. Otherwise, please excuse my ignorance as I've been in Javascript land for a while now.