std::pow implementation
Gabriel Dos Reis
gdr@integrable-solutions.net
Tue Jul 29 15:59:00 GMT 2003
Michael Matz <matz@suse.de> writes:
| Hi,
|
| On 29 Jul 2003, Gabriel Dos Reis wrote:
|
| > | Well how do you suggest we make the compiler to its job better then?
| >
| > Start with removing the requirement that whether a function should be
| > inlined depends on its context of use.
|
| So it should be inlined independend of the context?
You missed "of use".
| Well, that for sure _is_ nonsense, sorry.
It is nonsense only after you have modified what I said.
A simple function like 'std::string::end() const' should be cost-free.
Providing a controled access to a protected data should be as efficient
as accessing that data directly. Protection is a compile time notion.
-- Gaby
More information about the Gcc
mailing list