From 1ada93be00378c94ff14bec8c2c7f5bbd85f72b0 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Wed, 31 May 2017 19:46:52 -0400 Subject: Remove use of std::cref Prefer implicit conversion for readability. Change-Id: I64d04b926edea0531a5414a416c04b36ae3d5e2a Signed-off-by: Brad Bishop --- src/templates/generated.mako.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/templates/generated.mako.hpp b/src/templates/generated.mako.hpp index 51462b1..b8ad523 100644 --- a/src/templates/generated.mako.hpp +++ b/src/templates/generated.mako.hpp @@ -113,15 +113,15 @@ struct ConfigPropertyIndicies { PropertyIndex::key_type { - std::cref(ConfigPaths::get()[${i[0]}]), - std::cref(ConfigInterfaces::get()[${i[2]}]), - std::cref(ConfigProperties::get()[${i[3]}]) + ConfigPaths::get()[${i[0]}], + ConfigInterfaces::get()[${i[2]}], + ConfigProperties::get()[${i[3]}] }, PropertyIndex::mapped_type { - std::cref(ConfigMeta::get()[${i[1]}]), - std::cref(ConfigMeta::get()[${i[4]}]), - std::ref(ConfigPropertyStorage::get()[${i[5]}]) + ConfigMeta::get()[${i[1]}], + ConfigMeta::get()[${i[4]}], + ConfigPropertyStorage::get()[${i[5]}] }, }, % endfor -- cgit v1.2.1