diff options
author | Matt Spinler <spinler@us.ibm.com> | 2018-02-26 09:14:31 -0600 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-02-27 18:36:05 +0000 |
commit | 1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 (patch) | |
tree | 119da3b2d0af7e31a42dc29f8ec7dc79a85f9af3 /src/propertywatchimpl.hpp | |
parent | 3c5318d843651dd18a6b8b0da67e3aaef810ca91 (diff) | |
download | phosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.tar.gz phosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.zip |
Add constants for tuple fields
Add constants for use with std::get.
Tested: Run unit tests
Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'src/propertywatchimpl.hpp')
-rw-r--r-- | src/propertywatchimpl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/propertywatchimpl.hpp b/src/propertywatchimpl.hpp index 9fe57d5..1f0e4d1 100644 --- a/src/propertywatchimpl.hpp +++ b/src/propertywatchimpl.hpp @@ -146,7 +146,7 @@ void PropertyWatchOfType<T, DBusInterfaceType>::propertiesChanged( continue; } - std::get<0>(std::get<2>(item->second).get()) = + std::get<valueIndex>(std::get<storageIndex>(item->second).get()) = p.second.template get<T>(); // Invoke callback if present. |