public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question about std templates
@ 2005-08-08 13:17 stefano luceri
  2005-08-08 14:17 ` Nathan Sidwell
  2005-08-08 19:58 ` Jari Sundell
  0 siblings, 2 replies; 3+ messages in thread
From: stefano luceri @ 2005-08-08 13:17 UTC (permalink / raw)
  To: gcc

hello to all

anyone know if is possible to add a member to a template of standard 
library?

for example I wish to add a member:

int reference_system;

to standard template valarray ....

thank you

Stefano

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about std templates
  2005-08-08 13:17 Question about std templates stefano luceri
@ 2005-08-08 14:17 ` Nathan Sidwell
  2005-08-08 19:58 ` Jari Sundell
  1 sibling, 0 replies; 3+ messages in thread
From: Nathan Sidwell @ 2005-08-08 14:17 UTC (permalink / raw)
  To: stefano luceri; +Cc: gcc

stefano luceri wrote:
> hello to all
> 
> anyone know if is possible to add a member to a template of standard 
> library?

you'd have to modify the library source files, and then you'd end up with a 
non-standard library

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about std templates
  2005-08-08 13:17 Question about std templates stefano luceri
  2005-08-08 14:17 ` Nathan Sidwell
@ 2005-08-08 19:58 ` Jari Sundell
  1 sibling, 0 replies; 3+ messages in thread
From: Jari Sundell @ 2005-08-08 19:58 UTC (permalink / raw)
  To: stefano luceri; +Cc: gcc

On 8/8/05, stefano luceri <stefano@communicationfactory.it> wrote:
> hello to all
> 
> anyone know if is possible to add a member to a template of standard
> library?

Have you considered using public or private inheritance from the STL container?

-- 
Rakshasa

Nyaa?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-08-08 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-08 13:17 Question about std templates stefano luceri
2005-08-08 14:17 ` Nathan Sidwell
2005-08-08 19:58 ` Jari Sundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).