summaryrefslogtreecommitdiffhomepage
path: root/options/value-traits.hpp
AgeCommit message (Collapse)Author
2019-01-16modernize onlyStanislaw Halik
- replace `static constexpr inline' with `static constexpr'. `inline' is implied. - use braced initializer lists where applicable - still missing `override' usages
2019-01-16cruft onlyStanislaw Halik
2018-12-24style/quality onlyStanislaw Halik
No functional changes. - add `override' everywhere where missing - almost pass clang's `-Wweak-vtables' - avoid some float/double conversions - remove unused private members - make signedness conversions explicit - put stuff in right namespaces to aid analysis
2018-10-25options/value-traits: fix bool storageStanislaw Halik
Using int as `stored_type' for bool made Qt signals not work. Evident when ticking the "asymmetric mapping" checkboxes in the mapping window. Remove some std::decay_t usage, there's no need for either decay or remove_cvref. In `value<t>::get()', `bundle::get_variant' of an undefined key will fall back to `return def' so remove the duplicate logic.
2018-10-07fix GCC build errorsStanislaw Halik
Issue: #726
2018-10-05options: don't use typeindex w/ lambdasStanislaw Halik
Rename traits' functions to be more explicit. Most of the changes are pretty old and I can't read them at this time, sorry. Adjust usages. Issue: #825 Reported-by: @DanielKinsman
2018-07-08options: fix 2 issuesStanislaw Halik
1. Calling valueChanged didn't invoke machinery in value<t>, only base_value aka value_. There's a fast path in value<t>::type() despite the pessimization. 2. Split global scope stuff into options::globals from the options::globals stuff 3. Adjust usages
2018-07-02nothing importantStanislaw Halik
2018-06-26core, modules: modernize syntax onlyStanislaw Halik
Use more C++17 features where this helps any.
2018-04-28random cleanupsStanislaw Halik
2018-04-05options/value-traits: add missing pragma onceStanislaw Halik
2018-01-18compat: split/cleanup util.hppStanislaw Halik
Some of the headers are clearly useless. Remove them. Move what's inside util.hpp into separate headers. Adjust usages. Will remove util.hpp.
2017-10-27options/value: template fixStanislaw Halik
2017-09-23compat: use c++17-style value templatesStanislaw Halik
2017-08-14use c++14 featuresStanislaw Halik
2017-05-12options: split up value.hpp headerStanislaw Halik
Also combine the traits classes and make them more useful.