
On Sun, Aug 10, 2008 at 11:57 PM, joel falcou
Basically I want to make a concept which represents class that supports the result_of protocol, ie exposes either a result_type or a result inner class. So my first idea was to see if a given type have either of this inner elements.
I tried to make something I called result_of_defined a while back, which I think tried to accomplish something like what you're mentioning: http://svn.boost.org/svn/boost/sandbox/SOC/2007/signals/boost/dataflow/signa... The test for that was: http://svn.boost.org/svn/boost/sandbox/SOC/2007/signals/libs/dataflow/test/s... At some point I gave up, because I never really got to understand all the details of result_of, and I started to suspect that what I wanted to do was not fully possible. I haven't been running the above test for a while so I don't remember what all was passing at the time I left it, but maybe the result_of_defined code will be of some use to you as a reference. Regards, Stjepan