From -5737840772109839247
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,66d20309909372f6
X-Google-Attributes: gidf78e5,public
From: Valentin Bonnard <bonnardv@pratique.fr>
Subject: Re: STL and set_union algorithm question? (newbie to STL!)
Date: 1998/04/09
Message-ID: <352C74D1.3B6F@pratique.fr>#1/1
X-Deja-AN: 342416093
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
Content-Transfer-Encoding: 7bit
References: <6g2te9$a7n$1@ukwsv3.ggr.co.uk> <35290568.2781@wizard.net> <352A9B77.2781E494@pratique.fr> <6gelt5$mpp@marianna.psu.edu> <fxtsono2jp4.fsf@isolde.mti.sgi.com> <6gh6t6$ptn@marianna.psu.edu>
X-Original-Date: Thu, 09 Apr 1998 09:12:17 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Ecole Normale Superieure, Paris, France
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANSzUguEDnX0m9pzZAQGfFQF9ErMFBY8dKx9e91qmvn1qwR5d77xoU4h4 jccWofNiX/kg4s+9UGkCqn8uC8AZwdYJ =0eFI
Newsgroups: comp.std.c++


Oleg Zabluda wrote:

> I just want it to be non-convertible to set<>::const_iterator.

I understand your opinion. You may also want cont<T>::iterator 
not to be convertible to cont<U>::iterator, for any T != U, 
which would mean that vector::iterator can't be a pointer.

I think it's should be possible to avoid direct use of primitive 
types entirely, but it's too early to impose that given the fact 
that using an object (class) instead of a built-in incurs a penalty 
under a number of compilers.

-- 

Valentin Bonnard                mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



