"Andy Little"
I think we need a little bit more context here.
OP David Abrahams
Andy Little (me)
Just trying to use mpl::transform on a vector of int's and I can't seem to get it working properly. Can anyone see what's wrong?? I'm trying to perform
vector_c
+ vector_c = vector_c The is_same function always returns false when I compile and run it.
The result of the transform is only required to be "concept-identical" to the result you're looking for.
IMO that behaviour is sloppy. I see no reason why (at least)
boost::is_same < plus< int_<1> ,int_<1> >::type, int_<2> > shouldnt be true.
Your change from "the transform" to "being about transform" above is problematic for me.
I don't know what you mean. Nobody wrote "the transform" above.
Don't make this complicated. It is very simple: I made a statemnt
*about the behavior of transform*, and you replied "that behavior is
sloppy," and then proceeded to go on about something only distantly
related (the type of results of arithmetic operations).
The behavior I was describing is not sloppy. To make the library
behave differently would introduce a huge overhead in implementation
code that is more likely than not to slow down compilation of user
programs.
Let me be a little more explicit:
transform