Skip to content

Commit

Permalink
Merge pull request #24 from stefanhong/master
Browse files Browse the repository at this point in the history
fix compatibility problem for gcc 4.8+.
  • Loading branch information
melode11 committed Jun 12, 2015
2 parents d0e4805 + 52f92d8 commit 9e9d76c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ cmake
1. Install boost, see [Boost setup](#boost_setup) section.
2. Use `git clone --recurse-submodules https://github.com/socketio/socket.io-client-cpp.git` to clone your local repo.
3. Add `<your boost install folder>/include`,`./lib/websocketpp` and `./lib/rapidjson/include` to headers search path.
4. Include all files under `./src` in your project, add `sio_packet.cpp`,`sio_socket.cpp`,`internal/sio_client_impl.cpp` to source list.
4. Include all files under `./src` in your project, add `sio_client.cpp`,`sio_socket.cpp`,`internal/sio_client_impl.cpp`, `internal/sio_packet.cpp` to source list.
5. Add `<your boost install folder>/lib` to library search path, add `boost.lib`(Win32) or `-lboost`(Other) link option.
6. Include `sio_client.h` in your client code where you want to use it.

Expand Down
2 changes: 1 addition & 1 deletion src/internal/sio_packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ namespace sio
}
if (_frame == frame_message && (_type == type_binary_event || _type == type_binary_ack)) {
//parse later when all buffers are arrived.
_buffers.push_back(make_shared<const string>(payload_ptr.data() + json_pos, payload_ptr.length() - json_pos));
_buffers.push_back(make_shared<string>(payload_ptr.data() + json_pos, payload_ptr.length() - json_pos));
return true;
}
else
Expand Down
2 changes: 2 additions & 0 deletions src/sio_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ namespace sio
flag_array,
flag_object
};

virtual ~message() = default;

class list;

Expand Down

0 comments on commit 9e9d76c

Please sign in to comment.