Remove use of std::cref
Prefer implicit conversion for readability.
Change-Id: I64d04b926edea0531a5414a416c04b36ae3d5e2a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
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 @@
{
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