Skip to content

Commit 92abec9

Browse files
committed
Fix linker error by making empty_msg static member variable inline constexpr
1 parent b1a7683 commit 92abec9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Use UTC-aware time conversion (`timegm`/`_mkgmtime`) instead of local time (`mktime`) for ISO 8601 timestamp parsing
1717
- Replace `std::format` with chrono formatters with `strftime` for GCC 14 compatibility in `timestamp_to_string`
1818
- Fix `std::string_view` to `std::string` conversion in `logData` for `fstream::open` compatibility
19+
- Fix linker error by making `empty_msg` static member variable `inline constexpr`
1920

2021
### Removed
2122
- Unused `reconnectMarketData` and `reconnectUserData` methods from WebSocket class

include/coinbase/websocket.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class WebSocketClient {
254254
std::atomic_int_fast8_t pending_md_socket_close_ = 0;
255255
std::atomic_int_fast8_t pending_user_socket_close_ = 0;
256256
uint64_t data_cursor_ = 0;
257-
static const char empty_msg = '\0';
257+
static inline constexpr char empty_msg = '\0';
258258
};
259259

260260
constexpr uint32_t MESSAGE_HEADER_SIZE = sizeof(WebSocketClient*) + 1;

0 commit comments

Comments
 (0)