From 1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Mon, 26 Feb 2018 09:14:31 -0600 Subject: Add constants for tuple fields Add constants for use with std::get. Tested: Run unit tests Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e Signed-off-by: Matt Spinler --- src/propertywatchimpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/propertywatchimpl.hpp') 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::propertiesChanged( continue; } - std::get<0>(std::get<2>(item->second).get()) = + std::get(std::get(item->second).get()) = p.second.template get(); // Invoke callback if present. -- cgit v1.2.1