Skip to content

Commit

Permalink
protoboard: return const refs from enum bimap
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatare committed Dec 4, 2019
1 parent e56ea3d commit dda6569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/protoboard/protoboard_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class enum_map
* @param v a ProtoBuf enum value
* @return the mapped blackboard interface enum value
*/
constexpr bbEnumT
constexpr const bbEnumT &
of(pbEnumT v) const
{
return map.left.at(v);
Expand All @@ -81,7 +81,7 @@ class enum_map
* @param v a blackboard interface enum value
* @return the mapped ProtoBuf enum value
*/
constexpr pbEnumT
constexpr const pbEnumT &
of(bbEnumT v) const
{
return map.right.at(v);
Expand Down

0 comments on commit dda6569

Please sign in to comment.