Opened 11 years ago

Closed 11 years ago

#6395 closed Bugs (fixed)

Some trivial functions aren't declared inline

Reported by: danivy.mail@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: move
Version: Boost 1.48.0 Severity: Optimization
Keywords: move inline Cc:

Description

Many one-liner functions in <boost/move/move.hpp> aren't declared inline. Some compilers, such as Sun and older GCC's won't inline them as such. For instance, even something as simple as:

#include <boost/move/move.hpp>

int main()
{
    int x = 123;
    return boost::move(x);
}

Generates a call to boost::move.

Change History (1)

comment:1 by Ion Gaztañaga, 11 years ago

Resolution: fixed
Status: newclosed

One liners declared inline. At revision: 76506

Note: See TracTickets for help on using tickets.