Strong typedef: Add edit_base() method to return a base reference

wip-string
Jonathan G Rennison 5 months ago
parent 8d0506412c
commit 1d23ae5fdd

@ -306,6 +306,7 @@ namespace StrongType {
/* Only allow conversion to BaseType via method. */
constexpr TBaseType base() const { return this->value; }
constexpr TBaseType &edit_base() { return this->value; }
/* Only allow TProperties classes access to the internal value. Everyone else needs to call .base(). */
friend struct Compare;

Loading…
Cancel
Save