Hi Masa et al, On Sun, 24 Jun 2001 20:14:33 +0200 Christian Holm Christensen <cholm@hehi03.nbi.dk> wrote concerning ": [ROOT] Functor objects in CINT! ": > Hi Masa et al, > > There seems to be a problem with pure functor classes in CINT. I have > the very simple script: > > class Functor > { > public: > int operator ()(int i){ cout << "hello world" << endl; return i; } > }; > > int functor () > { > return Functor(10); > } This - as was pointed out to me - is illformed C++, and is not supposed to work. Too bad, I kind of liked the idea. Sorry for wasting your time - please ignore this question. However, you'd expect CINT to give some kind of error due to the missing CTOR with one "int" argument. Yours, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET