mirror of
https://github.com/esphome/esphome.git
synced 2026-09-13 16:18:41 +00:00
[light] Shorten Empty<Tag> comment to one line
This commit is contained in:
@@ -24,8 +24,7 @@ template<typename... Ts> class ToggleAction : public Action<Ts...> {
|
||||
LightState *state_;
|
||||
};
|
||||
|
||||
// Distinct empty types per field tag so [[no_unique_address]] always coalesces
|
||||
// (the same empty type used multiple times is not guaranteed to share an address).
|
||||
// Unique Empty<Tag> per field so [[no_unique_address]] is guaranteed to coalesce.
|
||||
namespace light_control_detail {
|
||||
template<int Tag> struct Empty {};
|
||||
} // namespace light_control_detail
|
||||
|
||||
Reference in New Issue
Block a user