Files
scylladb/tests
Avi Kivity da2a98cde6 config: don't allow assignment to config values
Currently, we allow adjusting configuration via

  cfg.whatever() = 5;

by returning a mutable reference from cfg.whatever(). Soon, however, this operation
will have side effects (updating all references to the config item, and triggering
notifiers). While this can be done with a proxy, it is too tricky.

Switch to an ordinary setter interface:

  cfg.whatever.set(5);

Because boost::program_options no longer gets a reference to the value to be written
to, we have to move the update to a notifier, and the value_ex() function has to
be adjusted to infer whether it was called with a vector type after it is
called, not before.
2019-06-28 16:43:25 +03:00
..
2019-06-28 16:43:25 +03:00
2019-06-28 16:43:25 +03:00
2019-02-07 20:18:14 +02:00
2019-06-28 16:43:25 +03:00
2019-06-28 16:43:25 +03:00
2019-04-28 15:50:12 +02:00
2019-06-28 16:43:25 +03:00
2019-02-07 20:18:14 +02:00
2019-06-12 13:14:53 +03:00
2019-02-07 20:18:14 +02:00
2019-06-28 16:43:25 +03:00
2019-05-07 10:00:58 +03:00
2019-06-28 16:43:25 +03:00
2019-03-28 14:21:10 +02:00
2019-03-28 14:21:10 +02:00
2019-05-07 10:00:58 +03:00
2019-06-28 16:43:25 +03:00
2019-06-28 16:43:25 +03:00