Topic: Is std::tr1::function intended to work ONLY with function objects
Author: AlbertoBarbati@libero.it (Alberto Ganesh Barbati)
Date: Fri, 18 May 2007 17:41:53 GMT Raw View
Florin Neamtu ha scritto:
> Hi,
>
> I'm using an STL implementation that fails to compile the below code.
Could you please post which compiler and the exact error message?
> So the question is: is the below code standard? Or the behavior is
> implementation-specific?
AFAIK, the code is supposed to be ok. In this case there is no need to
have an explicit statement allowing such possibility: in absence of an
explicit statement against it, we can safely assume it's ok.
BTW in the docs of Boost.Function there is an indirect assumption that
it's possible in section "References to Function Objects" here:
http://boost.org/doc/html/function/tutorial.html#id1187118
HTH,
Ganesh
---
[ 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://www.comeaucomputing.com/csc/faq.html ]