Opened 9 years ago
Closed 9 years ago
#8742 closed Feature Requests (invalid)
All comparison operators should be inline
Reported by: | Owned by: | Daniel Frey | |
---|---|---|---|
Milestone: | To Be Determined | Component: | operators |
Version: | Boost 1.53.0 | Severity: | Optimization |
Keywords: | Cc: |
Description
All STL comparison operators are inline, but the ones in boost/operators.hpp aren't. It would be a great improvement if they were inline, and there is absolutely no reason for them not to be.
Note:
See TracTickets
for help on using tickets.
They are automatically inlined by the compiler if applicable, the inline-keyword you see in your STL code is probably there for different reasons. Try to benchmark your code (don't forget to enable optimizations) and you'll find that the inline-keyword wouldn't make a difference.