The previous version worked. great. Updated and now it won't compile:
In file included from src/esphome/components/esp32_ble/ble_event_pool.h:8,
from src/esphome/components/esp32_ble/ble.h:15,
from src/esphome/components/esp32_ble_tracker/esp32_ble_tracker.h:22,
from src/esphome/components/esp32_ble_client/ble_client_base.h:5,
from src/esphome/components/bluetooth_proxy/bluetooth_connection.h:5,
from src/esphome.h:16,
from src/main.cpp:3:
src/esphome/components/esp32_ble/queue.h: In instantiation of 'esphome::esp32_ble::LockFreeQueue<T, SIZE>::LockFreeQueue() [with T = esphome::esp32_ble::BLEEvent; unsigned char SIZE = 64]':
src/esphome/components/esp32_ble/ble.h:94:7: required from here
src/esphome/components/esp32_ble/queue.h:79:24: error: 'esphome::esp32_ble::LockFreeQueue<esphome::esp32_ble::BLEEvent, 64>::tail_' will be initialized after [-Werror=reorder]
79 | std::atomic<uint8_t> tail_;
| ^~~~~
src/esphome/components/esp32_ble/queue.h:75:25: error: 'std::atomic<short unsigned int> esphome::esp32_ble::LockFreeQueue<esphome::esp32_ble::BLEEvent, 64>::dropped_count_' [-Werror=reorder]
75 | std::atomic<uint16_t> dropped_count_; // 65535 max - more than enough for drop tracking
| ^~~~~~~~~~~~~~
src/esphome/components/esp32_ble/queue.h:23:3: error: when initialized here [-Werror=reorder]
23 | LockFreeQueue() : head_(0), tail_(0), dropped_count_(0) {}
| ^~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
*** [.pioenvs/btproxy-01/src/main.cpp.o] Error 1
========================== [FAILED] Took 9.71 seconds ==========================