From 9cfa90305328fcfbc6d9fe16824ce71047ef5bee Mon Sep 17 00:00:00 2001 From: Gareth Potter Date: Thu, 12 Feb 2026 12:44:58 +0000 Subject: [PATCH] add const conversion --- include/thingset++/ThingSetValue.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/thingset++/ThingSetValue.hpp b/include/thingset++/ThingSetValue.hpp index e3ce77e..1022da5 100644 --- a/include/thingset++/ThingSetValue.hpp +++ b/include/thingset++/ThingSetValue.hpp @@ -61,6 +61,11 @@ class ThingSetValue : public ThingSetEncodable, return _value; } + operator const T &() const + { + return _value; + } + T *operator&() { return &_value;