|
Boost : |
Subject: Re: [boost] Interest in a 'Boost.property' library?
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2013-07-08 05:19:17
08.07.2013 12:33, Klaim - Joël Lamotte:
> This is surely a controversial feature.
> I see some use of properties, like allowing to add checks on setting values
> to a type which was a simple struct initially
> (which happen a lot in data-centric designs).
If check does not need any internals of enveloping object, or does not
need to be overridable by enveloping class descendants - which is often
the case - then in C++ - it should be done just like normal concrete
class, with invariants established in constructors.
-- Evgeny Panasyuk
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk