Boost Users :
From: John Christopher (jcxxr_at_[hidden])
Date: 2006-05-02 08:04:16
That's right, I changed int to T twice in the square class (int struct
result and in operator ()) and it now works fine.
"Joel de Guzman" <joel_at_[hidden]> wrote in message
> Joel de Guzman wrote:
>> John Christopher wrote:
>>> The example at the bottom of:
>>> does not compile; I am using MinGw 3.4.2.
>>> More specifically it is the line
>>> std::cout << transform << std::endl;
>> Works fine for me. See attached.
>>> that seems to create the problem.
>>> I was also wondering why operator() of square return int and not T.
>> Yes, it should be T. Noted. Thanks for spotting that. It's
>> corrected in the cpp file I just sent.
> Oh and BTW, I tried it on VC7.1, VC8.0 and g++3.4.
> Joel de Guzman
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net