Skip to content

Commit

Permalink
inline the operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Jan 23, 2024
1 parent 0cd96fc commit 7e2c6fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/xsk/arc/common/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum class build : u8
dev = dev_blocks | dev_maps,
};

build operator|(build lhs, build rhs)
inline build operator|(build lhs, build rhs)
{
return static_cast<build>(static_cast<std::underlying_type<build>::type>(lhs) | static_cast<std::underlying_type<build>::type>(rhs));
}
Expand Down
2 changes: 1 addition & 1 deletion include/xsk/gsc/common/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ enum class build : u8
dev = dev_blocks | dev_maps,
};

build operator|(build lhs, build rhs)
inline build operator|(build lhs, build rhs)
{
return static_cast<build>(static_cast<std::underlying_type<build>::type>(lhs) | static_cast<std::underlying_type<build>::type>(rhs));
}
Expand Down

0 comments on commit 7e2c6fb

Please sign in to comment.