Opened 9 years ago

Closed 9 years ago

#8742 closed Feature Requests (invalid)

All comparison operators should be inline

Reported by: Vilim Lendvaj <vilim.lendvaj@…> 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.

Change History (1)

comment:1 by Daniel Frey, 9 years ago

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.