Weird optimization for tuples?

2017-02-11 Thread David Guillen Fandos
Hello! I have the following function std::tuple getRawIdx(uint16_t tidx) { return std::make_tuple(localidx.entries[tidx].indx_ptr, localidx.entries[tidx].indx_size); } Where s is a struct like typedef struct __attribute__((packed)) { uint32_t indx_ptr; uint8_t indx_size; } _i_

Re: Doc question: is "templatized" a word?

2017-02-11 Thread Jonathan Wakely
On 11 February 2017 at 20:36, Sandra Loosemore wrote: > On 02/11/2017 06:21 AM, Jonathan Wakely wrote: >> >> On 11 February 2017 at 08:48, Gerald Pfeifer wrote: >>> >>> On Fri, 10 Feb 2017, Sandra Loosemore wrote: The documentation for -Wno-non-template-friend refers to "non-templati

Re: Doc question: is "templatized" a word?

2017-02-11 Thread Sandra Loosemore
On 02/11/2017 06:21 AM, Jonathan Wakely wrote: On 11 February 2017 at 08:48, Gerald Pfeifer wrote: On Fri, 10 Feb 2017, Sandra Loosemore wrote: The documentation for -Wno-non-template-friend refers to "non-templatized friend functions" and "templatized functions". I don't see the term "templat

Re: Doc question: is "templatized" a word?

2017-02-11 Thread Jonathan Wakely
On 11 February 2017 at 08:48, Gerald Pfeifer wrote: > On Fri, 10 Feb 2017, Sandra Loosemore wrote: >> The documentation for -Wno-non-template-friend refers to "non-templatized >> friend functions" and "templatized functions". I don't see the term >> "templatized" used anywhere in the C++ standard.

Re: Doc question: is "templatized" a word?

2017-02-11 Thread Gerald Pfeifer
On Fri, 10 Feb 2017, Sandra Loosemore wrote: > The documentation for -Wno-non-template-friend refers to "non-templatized > friend functions" and "templatized functions". I don't see the term > "templatized" used anywhere in the C++ standard. This paragraph also uses > "nontemplate function", whic