Re: [Stlport-devel] _STLP_DEBUG mode additional constraints (was 'enhancement')
Brought to you by:
complement
From: Ulrich E. <eck...@sa...> - 2007-10-01 08:48:14
|
On Friday 28 September 2007 21:41, Fran=E7ois Dumont wrote: > Considering your answer and Petr one it looks like I haven't been > clear enough about my consideration in types involved in the functor > invocation. In only wanted to say that when a and b are of the same > types you can safely invoke functor(a, b) or functor(b, a) without risk > of compilation failure, it do not add any constraint on user code. Francois, you can indeed invoke a functor like f(a,b) or f(b,a) if both are= =20 the same type, but possibly the result is meaningless. Consider the=20 following: struct regex_match { bool operator()( string const& txt, string const& regex) const; }; which could be used in the context of find_first_of(). Indeed, you can inve= rt=20 the parameters, but it wouldn't mean anything, in particular you can't use= =20 the result to determine if the predicate is written correctly. Uli --=20 Sator Laser GmbH Gesch=E4ftsf=FChrer: Ronald Boers, Amtsgericht Hamburg HR B62 932 ***************************************************************************= *********** Visit our website at <http://www.satorlaser.de/> ***************************************************************************= *********** Diese E-Mail einschlie=DFlich s=E4mtlicher Anh=E4nge ist nur f=FCr den Adre= ssaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benach= richtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf= =E4nger sein sollten. Die E-Mail ist in diesem Fall zu l=F6schen und darf w= eder gelesen, weitergeleitet, ver=F6ffentlicht oder anderweitig benutzt wer= den. E-Mails k=F6nnen durch Dritte gelesen werden und Viren sowie nichtautorisie= rte =C4nderungen enthalten. Sator Laser GmbH ist f=FCr diese Folgen nicht v= erantwortlich. ***************************************************************************= *********** |