[C++-sig] Automatic support for operator[] and operator()

Joel de Guzman djowel at gmx.co.uk
Sat Nov 16 01:03:30 CET 2002

----- Original Message ----- 
From: "David Abrahams" <dave at boost-consulting.com>

> Regarding the function-call example, I don't think the above provides
> significant benefit over the existing facilities for defining
> "__call__". However, it did get me thinking: we don't need to specify
> the return type in these operator expressions; maybe our
> advantage of the same techniques so that users don't have to supply
> the return type of their overload set(s). I'm not sure there's much to
> be gained here, but it's worth a thought.

Hmmm. Perhaps I'm still sleepy "-}, but what technique were
you referring to?


More information about the Cplusplus-sig mailing list